Hello everyone. Pleasure to be here. I have the following macro to clear contents of ranges:
The problem is that I'm a rookie and the range is variable, so I have to manually change the range. So the last row (2223) gets changed to whatever it happens to be for that month.
My question (finally), is there a way to generate an input box requesting the range end, row 3 will ALWAYS be the first row, and then clear contents based on that? The column references will never change, only the last row is variable. Thank you for your help. Have a great day!
Code:
Range("A3:R2223,V3:AF2223,AH3:AI2223,AM3:AM2223,AP3:AP2223").Select
Selection.ClearContents
Range("A3").Select
The problem is that I'm a rookie and the range is variable, so I have to manually change the range. So the last row (2223) gets changed to whatever it happens to be for that month.
My question (finally), is there a way to generate an input box requesting the range end, row 3 will ALWAYS be the first row, and then clear contents based on that? The column references will never change, only the last row is variable. Thank you for your help. Have a great day!