I am trying to write a macro that will select the column with "Est #" in the first row and paste the entire column in a new column.
I know how to loop through rows:
Sub test()
Dim i As Integer
For i = 1 To 100
If Range("C" & i) = "All values USD Millions." Then
Range("C" & i & ":H" & i).Delete
Else
Range("A3").Select
End If
Next
End Sub
The problem is that columns have letters, not numbers, so I am unsure how I can loop through the first 30 columns and paste the column with "Est #" in the first row into Range("CA:CA").
You could do it thus, although Find is more efficient
Here is the Find method