Hello,
I have the following code in an Excel 2007 macro:
Range("M5:M18264").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _:=False, Transpose:=False
The problem is that I will not know the length of the range each time I run the macro. The cells contain a formula and I am trying to get rid of the formula and paste just the values. How can I define and select that range automatically then copy it and paste special values?
Any help would be greatly appreciated!
Thanks in advance,
Gromace
I have the following code in an Excel 2007 macro:
Range("M5:M18264").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _:=False, Transpose:=False
The problem is that I will not know the length of the range each time I run the macro. The cells contain a formula and I am trying to get rid of the formula and paste just the values. How can I define and select that range automatically then copy it and paste special values?
Any help would be greatly appreciated!
Thanks in advance,
Gromace