Hello,
I am trying to create a macro to select E2, then run a formula within an autofill based off of column A.
Sub Formula()
'Assign a flexible formula to a range of cells
For x = 2 To 1000
If range("A" & x).Value = Then range("E" & x).Formula2R1C1 = right(D2,5)
End Sub
My error is "then"
Bookmarks