How can I repeat this process for up to 500 cells of data, displayed down a column?
Each iteration will need to move downward in the respective columns one cell at a time in three places:
- The B2 reference will roll to B3, B4, etc. using a relative reference
- R[-2]C[-1] will roll to R[-1]C[-1], R[1]C[-1], etc., using a relative reference
- The D2 reference will roll to D3, D4, etc. using a relative reference
Sub Email()
Application.Goto Reference:="Email"
Sheets("Tickers").Select
If Range("B2") = Empty Then
Exit Sub
End If
Sheets("Moves").Select
Range("C4").Select
ActiveCell.FormulaR1C1 = "=Tickers!R[-2]C[-1]"
Worksheets("Moves").Activate
Application.Wait (Now + TimeValue("0:00:10"))
ActiveSheet.Range("B2:L129").Copy
With Worksheets("Tickers")
.Activate
.Range("D2").Select
.Pictures.Paste
End With
End Sub
The task is to take a list of tickers (column B on "Tickers", starting with cell B2), insert those tickers one by one on "Moves" in cell C4, and take the resulting table and copy-paste a picture of the table from Moves back into column D of "Tickers" (the table for the ticker in B2 would go in D2, B3 in D3, etc.).