Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to have all but two sheets selected out of a varying
number of possible sheets. The two that I don't want selected are Sheet1 and the very last one (SheetX for example). So far I have used this code below, but it only gets me half way there (doesn't select the first sheet, but still has the last one selected with the rest of the group). Dim shCount As Integer ThisWorkbook.Worksheets(2).Select For shCount = 3 To ThisWorkbook.Worksheets.Count Worksheets(shCount).Select (False) Next shCount For Each ws In Worksheets Next ws Any other ideas? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to update data from multiple sheets to one specific sheets | Excel Discussion (Misc queries) | |||
Selecting a specific worksheet | New Users to Excel | |||
Selecting specific cells | Excel Discussion (Misc queries) | |||
Print sheets by "All Sheets in workbook, EXCEPT for specific named sheets". Possible? | Excel Programming | |||
Changing the value in multiple sheets without selecting those sheets | Excel Programming |