Thread: Selected Sheets
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default Selected Sheets

for each sh in ActiveWindow.SelectedSheets
msgbox sh.name
Next

--
Regards,
Tom Ogilvy


"Glen Mettler" wrote in message
...
I have a workbook that contains 25 worksheets. Suppose I select sheets

12,
15, and 21
Is there a way - programmatically - to cycle thru the sheets collection

and
identify which ones have been selected?

I can count the number of sheets selected with:
SelectedSheets = ActiveWindow.SelectedSheets.Count

but I can't seem to find where I can read which ones are selected.

Glen