View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 6,953
Default Simple Row Offset Question

since you are copying a whole column, you can't move the destination range
down one row.

as an example,

columns(1).Offset(1,0) won't work
--
Regards,
Tom Ogilvy



"Dan R." wrote:

I'm using this simple code to copy and paste values from one sheet to
another but for some reason I can't figure out how to move the
DestRange1 down one row. I'm pretty sure it's Offset but I can't
figure out where to put it...

LC1 = Lastcol(WB2.Sheets(2)) + 1

Set SourceRange = WB1.Columns("A:D").Columns("F:K")
Set DestRange1 = WB2.Sheets(2).Columns(LC1)

SourceRange.Copy DestRange1

Thanks,
-- Dan