Hello,
Is there any way to clear out all of the data from an excel spreadsheet using VBA. When I ask this question currently I am clearing a range of cells, but in order to clear the entire range of cells I have a HUGE range.
workbooks("book1.xls".worksheets(1).range("A1:ag65000".clear
I was wondering if there was a way to clear just the cells that have been used (there is no set number that is used, it varies from month to month). So if one month I use the range ("A1:AG3000" and the next month I use the range ("A1:AG60000" is there a way to clear out just the range i used for that month. Any help would be greatly appreciated.
Thanks,
Brad
Is there any way to clear out all of the data from an excel spreadsheet using VBA. When I ask this question currently I am clearing a range of cells, but in order to clear the entire range of cells I have a HUGE range.
workbooks("book1.xls".worksheets(1).range("A1:ag65000".clear
I was wondering if there was a way to clear just the cells that have been used (there is no set number that is used, it varies from month to month). So if one month I use the range ("A1:AG3000" and the next month I use the range ("A1:AG60000" is there a way to clear out just the range i used for that month. Any help would be greatly appreciated.
Thanks,
Brad