Hi Matt,
One way would be to create a variable to record the number of rows in column A. Assuming the column A values start in row 2 use something like
Dim iARows as Integer
iARows = Range("A2:A" & Range("A" & Application.Rows.Count).End(xlup).Row))
Then substitute
Range("C2:C" & iArows)
for
Range("C2:C6")
Incidentally, you don't need all the .Selects. It:s more effcient just to address the ranges in question. e.g.
Dim iARows as Integer
iARows = Range("A2:A" & Range("A" & Application.Rows.Count).End(xlup).Row))
Range("A1:B6").Copy
Sheets("Sheet2").Range("C1").PasteSpecial(xlPasteAll)
Application.CutCopyMode = False
Sheets("Sheet2").Range("C1") = "Date"
Sheets("Sheet2").Range("C2:C" & iArows) = "=TODAY()"
Untested since I only have access to Excel for Mac 2008 at the moment and in their infinite wisdom Microsoft are no longer supporting VBA with Excel!
Bookmarks