Copy rows to different worksheet destinations

M

Mark

Hi,

Is there a way to copy a certain colums from a row and place them in
another worksheet?

The columns that are copied will remain constant but the row
destination will vary. The worksheet where I want them to end up will
depend on a 3 digit number that is entered in the original row.

Thank you.

Mark
 
T

Tom Ogilvy

Dim rng as range
set rng = Intersect(Selection.EntireRow, Range("A:A,E:E,G:J"))
rng.copy worksheets(rng(1).value).Cells(rows.count,1).End(xlup)(2)
 

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