How to: Refer to More Than One Sheet
Use the Array function to identify a group of sheets. The following example selects three sheets in the active workbook.
Sub Several()
Worksheets(Array("Sheet1", "Sheet2", "Sheet4")).Select
End Sub
Tento prohlížeč se už nepodporuje.
Upgradujte na Microsoft Edge, abyste mohli využívat nejnovější funkce, aktualizace zabezpečení a technickou podporu.
Use the Array function to identify a group of sheets. The following example selects three sheets in the active workbook.
Sub Several()
Worksheets(Array("Sheet1", "Sheet2", "Sheet4")).Select
End Sub