Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Bob Bob is offline
external usenet poster
 
Posts: 972
Default Referential Copy and Past

I want to create a macro that copies from one set of cells and copies to the
end of the range without regard to the original size. Currently, all
variations copy over the last row of the previous copy, thus deleting one
line each time. if the Selection.End(xlDown).Select would index by one
each time it would react the way i need it to.

Range("A1:C4").Select
Selection.Copy
Selection.End(xlDown).Select
Range("A5").Select
ActiveSheet.Paste
End Sub




Range("A1:C4").Select
Selection.Copy
c Range("A5").Select
ActiveSheet.Paste
End Sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
Rob Rob is offline
external usenet poster
 
Posts: 718
Default Referential Copy and Past

you can use the offset method:

selection.end(xldown).offset(1,0).select



"Bob" wrote:

I want to create a macro that copies from one set of cells and copies to the
end of the range without regard to the original size. Currently, all
variations copy over the last row of the previous copy, thus deleting one
line each time. if the Selection.End(xlDown).Select would index by one
each time it would react the way i need it to.

Range("A1:C4").Select
Selection.Copy
Selection.End(xlDown).Select
Range("A5").Select
ActiveSheet.Paste
End Sub




Range("A1:C4").Select
Selection.Copy
c Range("A5").Select
ActiveSheet.Paste
End Sub

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default Referential Copy and Past

Range("A1:C4").Copy Cells(Rows.Count, "A").End(xlUp)(2)

"Rob" wrote:

you can use the offset method:

selection.end(xldown).offset(1,0).select



"Bob" wrote:

I want to create a macro that copies from one set of cells and copies to the
end of the range without regard to the original size. Currently, all
variations copy over the last row of the previous copy, thus deleting one
line each time. if the Selection.End(xlDown).Select would index by one
each time it would react the way i need it to.

Range("A1:C4").Select
Selection.Copy
Selection.End(xlDown).Select
Range("A5").Select
ActiveSheet.Paste
End Sub




Range("A1:C4").Select
Selection.Copy
c Range("A5").Select
ActiveSheet.Paste
End Sub

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy Past Values Ed Davis[_2_] Excel Discussion (Misc queries) 13 October 6th 09 03:24 AM
copy & past row to column James Excel Discussion (Misc queries) 4 June 23rd 08 05:08 PM
Copy and Past Joe Excel Discussion (Misc queries) 1 August 17th 06 02:10 AM
Copy Past with macro Murat D. Hekimošlu Excel Programming 1 May 24th 05 02:00 PM
Past Link then copy Hal LEGERE-Steam Guy Excel Discussion (Misc queries) 3 December 23rd 04 02:58 PM


All times are GMT +1. The time now is 08:16 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"