Simple Row Offset Question

D

Dan R.

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
 
T

Tom Ogilvy

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
 
D

Dan R.

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









- Show quoted text -

Tom, I just realized that this also isnt the correct way to copy
multiple ranges, if I wanted to copy and paste ranges "A:D" and "F:K"
what would be the proper way to do this?
 
D

Dan R.

Tom, I just realized that this also isnt the correct way to copy
multiple ranges, if I wanted to copy and paste ranges "A:D" and "F:K"
what would be the proper way to do this?- Hide quoted text -

- Show quoted text -

Nevermind Tom, it's easier just to delete column E after I paste it.

Thanks,
-- Dan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top