Что-то я не могу понять, как когда правильнее перебирать страницы:
For Each iSht In Worksheets
или
For Each iSht In Sheets
И вообще какая разница у этих объектов?
Worksheets Property
For an Application object, returns a Sheets collection that represents all the worksheets in the active workbook.
For a Workbook object, returns a Sheets collection that represents all the worksheets in the specified workbook.
For Each iSht In Worksheets
или
For Each iSht In Sheets
И вообще какая разница у этих объектов?
Worksheets Property
For an Application object, returns a Sheets collection that represents all the worksheets in the active workbook.
For a Workbook object, returns a Sheets collection that represents all the worksheets in the specified workbook.