I\'d like to select all the rows and columns in a spreadsheet. The macro needs to be dynamic, as the number of columns and rows tend to vary each time the macro would be cal
@brettdj pointed out the use of ActiveSheet.UsedRange to clear the current used range. I would use the simple code below.
ActiveSheet.UsedRange
ActiveSheet.UsedRange ActiveSheet.UsedRange.Select