daseffects
Technical User
Looking for a more efficient way to copy the formula in I2 on sheet1 and insert into c2:f2 & l2.
Using the recorder I came up w/ the below - but running it shows cells being selected and leave L2 selected.
I've tried modifying it by taking out the select method but get errors when I then use the paste method.
Sub lookup()
'
Range("I2".Select
Selection.Copy
Range("C2".Select
ActiveSheet.Paste
Application.CutCopyMode = False
Selection.AutoFill Destination:=Range("C2:F2", Type:=xlFillDefault
Range("C2:F2".Select
Range("I2".Select
Selection.Copy
Range("L2".Select
ActiveSheet.Paste
End Sub
Using the recorder I came up w/ the below - but running it shows cells being selected and leave L2 selected.
I've tried modifying it by taking out the select method but get errors when I then use the paste method.
Sub lookup()
'
Range("I2".Select
Selection.Copy
Range("C2".Select
ActiveSheet.Paste
Application.CutCopyMode = False
Selection.AutoFill Destination:=Range("C2:F2", Type:=xlFillDefault
Range("C2:F2".Select
Range("I2".Select
Selection.Copy
Range("L2".Select
ActiveSheet.Paste
End Sub