G
Guest
I would like to copy the formula of Cell A1 to A2:A10 by using the following
code, but it always shows the "Object required".
Sub copyfor()
With Range("A1").copy
Range("A2:A10").pastespecial = xlformula
End with
End Sub
Could someone show me the right way to do it.
Thanks
code, but it always shows the "Object required".
Sub copyfor()
With Range("A1").copy
Range("A2:A10").pastespecial = xlformula
End with
End Sub
Could someone show me the right way to do it.
Thanks