Hello
I'm using the following code to "reset" a worksheet, that is, clear all contents, column/row grouping etc. For some worksheets there may not be any grouping, and when I run the macro I receive a Run-time error '1004' Ungroup method of Range class failed.
Can someone suggest an appropriate "On Error Resume" code for the following code, such that if the worksheet contains data the data is cleared and columns/rows reset?
Please Login or Register to view this content.
Bookmarks