PC Review


Reply
Thread Tools Rate Thread

Copy visible cells after filtered paste to first empty cell

 
 
Xrull
Guest
Posts: n/a
 
      26th Jun 2008
I need a vba code that will enable me to copy only the filtered cells in a
range of 4 columns on Sheet1, and paste it to the first empty cell on Sheet2.
Eg. Filter Column A to D on Sheet1, then copy only the visible cells, and
paste the range to, starting from say Column A1 to D1 on Sheet2; filter
Sheet1 again, and paste the visible cells starting where the last paste
ended. It would be nice if I could leave it to run until it ends. To manually
cut and paste these visible cells take me about 2 hrs.
I searched for a macro, but none I've seen were suitable.
 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      26th Jun 2008
Easy with a looping macro using
dlr=sheets("desinationsheet").cells(rows.count,"d").end(xlup).row+1

If all else fails, send your workbook to my address below with snippets of
this and a detailed explanation of what you desire.


--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Xrull" <(E-Mail Removed)> wrote in message
news:CF2E7AFF-641D-4FB7-880A-(E-Mail Removed)...
>I need a vba code that will enable me to copy only the filtered cells in a
> range of 4 columns on Sheet1, and paste it to the first empty cell on
> Sheet2.
> Eg. Filter Column A to D on Sheet1, then copy only the visible cells, and
> paste the range to, starting from say Column A1 to D1 on Sheet2; filter
> Sheet1 again, and paste the visible cells starting where the last paste
> ended. It would be nice if I could leave it to run until it ends. To
> manually
> cut and paste these visible cells take me about 2 hrs.
> I searched for a macro, but none I've seen were suitable.


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy Visible Cells and paste in another workbook visible cells only Abdul Microsoft Excel Programming 5 2nd Aug 2009 02:08 AM
To paste copied data in filtered/visible cells only Hamad Microsoft Excel Misc 1 3rd Apr 2009 01:49 AM
Paste data to a filtered column, pasting to visible cells only Shinka Microsoft Excel Misc 3 21st Oct 2008 09:18 PM
copy and paste filtered cells Rich Microsoft Excel Misc 1 27th Feb 2008 01:50 AM
Copy visible cells on Filtered data dairell@gmail.com Microsoft Excel Misc 4 18th Jul 2007 08:18 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:03 PM.