I just want to autofit 2 sheets but I get:
Run-time error '1004':
Select method of range class failed
Workbooks(antalwb + 1).Sheets(1).Cells.Select
Workbooks(antalwb + 1).Sheets(1).Cells.EntireColumn.AutoFit
Workbooks(antalwb + 1).Sheets(1).Range("A1").Select
Workbooks(antalwb + 1).Sheets(2).Cells.Select <--- Crashes here
Workbooks(antalwb + 1).Sheets(2).Cells.EntireColumn.AutoFit
Workbooks(antalwb + 1).Sheets(2).Range("A1").Select
First section works but not the second.
help!
Bookmarks