Hi at the top of my code I have the line:
Then there are several lines of code as the macro works on the current sheet.
The macro creates (and selects) a new sheet, then i have the following line:
when I run the macro, it breaks at this line:
What am I doing wrong?
Thanks
Code:
Dim nws As Worksheet
The macro creates (and selects) a new sheet, then i have the following line:
Code:
Set nws = ActiveSheet
when I run the macro, it breaks at this line:
Code:
ActiveWorkbook.Worksheets(nws).AutoFilter.Sort.SortFields.Clear
Thanks