P
platinum_eye200
Hi,
I want to reference a range of cells in the Visual basic editor. The
syntax i can use is:
Selection.AutoFill Destination:=Range("A10:H12"), Type:=xlFillDefault
except i want the number of columns referenced to be equal to the
variable 'n' which changes during runtime.
i.e.
Selection.AutoFill Destination:=Range("A10:Hn"), Type:=xlFillDefault
but this is rejected.
I would be grateful for any suggestions anyone has.
Martin.
I want to reference a range of cells in the Visual basic editor. The
syntax i can use is:
Selection.AutoFill Destination:=Range("A10:H12"), Type:=xlFillDefault
except i want the number of columns referenced to be equal to the
variable 'n' which changes during runtime.
i.e.
Selection.AutoFill Destination:=Range("A10:Hn"), Type:=xlFillDefault
but this is rejected.
I would be grateful for any suggestions anyone has.
Martin.