Hello,
I have the following code in a macro, in Excel 2007.
Range("M5").Select
Selection.Copy
Range("M5:M18264").Select
ActiveSheet.Paste
I currently have over 18,000 cells in the range, but the exact number will change monthly. What is the most effective way to select my range, without knowing the exact number of cells? Is there a function that can do this? If column A contains data, I want to include that row number in the range.
Thanks in advance for your help!
I have the following code in a macro, in Excel 2007.
Range("M5").Select
Selection.Copy
Range("M5:M18264").Select
ActiveSheet.Paste
I currently have over 18,000 cells in the range, but the exact number will change monthly. What is the most effective way to select my range, without knowing the exact number of cells? Is there a function that can do this? If column A contains data, I want to include that row number in the range.
Thanks in advance for your help!