PC Review


Reply
Thread Tools Rate Thread

Copy/Paste dynamic ranges

 
 
kevin
Guest
Posts: n/a
 
      28th May 2009
Hi,
I am trying to copy data from 3 tabs onto one tab eg Jan, Feb, Mar onto 2009
one underneath the other on the 2009 tab. I have recored a macro but it
always references a static cell to paste to. how do I get it to find the last
of the already pasted data and paste on the next row ie find the first empty
row as the data to be copied from the monthly tabs will vary in rows.

I hope this makes sense.
I am using the following code:
Selection.End(xlDown).Select
Range("A50").Select -----> this needs to be dynamic
ActiveSheet.Paste

Thanks in advance
Kevin
 
Reply With Quote
 
 
 
 
Joel
Guest
Posts: n/a
 
      28th May 2009
LastRow = Range("A1").End(xlDown).Row
Newrow = Lastrow + 1
Range("A" & NewRow).Paste


"kevin" wrote:

> Hi,
> I am trying to copy data from 3 tabs onto one tab eg Jan, Feb, Mar onto 2009
> one underneath the other on the 2009 tab. I have recored a macro but it
> always references a static cell to paste to. how do I get it to find the last
> of the already pasted data and paste on the next row ie find the first empty
> row as the data to be copied from the monthly tabs will vary in rows.
>
> I hope this makes sense.
> I am using the following code:
> Selection.End(xlDown).Select
> Range("A50").Select -----> this needs to be dynamic
> ActiveSheet.Paste
>
> Thanks in advance
> Kevin

 
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
How can I copy big ranges of cells without drag or copy/paste? Ricardo Julio Microsoft Excel Misc 3 23rd Mar 2010 02:38 PM
Copy/Paste dynamic ranges kevin Microsoft Excel Programming 1 28th May 2009 09:06 PM
Copy-Paste ever changing ranges Sandy Microsoft Excel Discussion 3 18th Nov 2007 10:36 AM
copy paste different ranges Khalil Handal Microsoft Excel Discussion 3 16th Aug 2007 06:07 PM
Automatic cut and paste based on dynamic ranges DangerMouse Microsoft Excel Discussion 1 29th Mar 2006 01:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:36 AM.