Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50151

Copy Range with Variable

$
0
0
I'm trying to copy to a range using several variables. This is supposed to copy to the first empty cell in Column A, but depending on the variable REPEAT it may need to copy to several cells below as well.


Code:

Cells(Row, 1).Copy Sheets("Pasted Zip Codes").Range(("A" & Rows.Count).End(xlUp).Offset(1,0), ("A" & Rows.Count).End(xlUp).Offset(Repeat,0))
This does not work

Viewing all articles
Browse latest Browse all 50151

Trending Articles