I'm looking to copy certain column cells one row at a time (i.e. A2, C2, G2 then onto A3, C3, G2) pasted onto a new sheet. I've looked at using:
Sheets("Sheet1").Range("A1:A10").Copy
But I need to copy data from certain columns.
Some Pseudo Code:
- Iterate through each row
- If the date in column A confines to the conditional statement, copy pre-determined column values and copy to new sheet.
- Check the next row.
I currently have a for loop iterating from rows 1 to 50.
'Copy Titles
Sheet2.Range("A1, E1, J1, K1, W1:X1, Y1, AA1").Copy
Sheets.Add
ActiveSheet.Range("A1").PasteSpecial
'Copy Data
'If today's date is later than a date in the Column A, copy the cell over.
?
'Fix Column Width
Range("A1:H1").ColumnWidth = 20
'Align Columns
Columns("A:H").HorizontalAlignment = xlCenter
End Sub
I'm thinking under each selection, I would do the same statement but copy onto the new sheet instead? Thank you in advance!