A
AirgasRob
I know how to select all sheets but need to be able to filter which sheets I
want selected. Can I select a sheet in a workbook based on criteria in a
specific cell?
This is the code I used to select all sheets.
Dim arySheets
Dim sh
Dim i As Long
ReDim arySheets(ActiveWorkbook.Worksheets.Count - 1)
For Each sh In ActiveWorkbook.Worksheets
arySheets(i) = sh.Name
i = i + 1
Next sh
Sheets(arySheets).Select
want selected. Can I select a sheet in a workbook based on criteria in a
specific cell?
This is the code I used to select all sheets.
Dim arySheets
Dim sh
Dim i As Long
ReDim arySheets(ActiveWorkbook.Worksheets.Count - 1)
For Each sh In ActiveWorkbook.Worksheets
arySheets(i) = sh.Name
i = i + 1
Next sh
Sheets(arySheets).Select