That code works for me also, is there anything with any of your sheet names that could cause the problem.
you may also want to adjust the code slightly to
its always best to avoid select staments , however i wouldnt have thought this would fix the code![]()
sheett1 = ActiveWorkbook.Sheets(1).Name sheett2 = ActiveWorkbook.Sheets(2).Name sheett3 = ActiveWorkbook.Sheets(3).Name sheett4 = ActiveWorkbook.Sheets(4).Name sheett5 = ActiveWorkbook.Sheets(5).Name sheett6 = ActiveWorkbook.Sheets(6).Name
Bookmarks