Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I seem to be unable to return a list of all sheets in a Workbook that are
currently selected by the user. Basically I want to return the Array in Worksheets(array("x",'y","z")).select and I 'm having trouble finding a way to return the collection of selected Worksheet once the are selected by the user. Any help would be appreciated, Felix |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The selected sheets are part of the activewindow. So something like this...
ActiveWindow.SelectedSheets.PrintPreview -- HTH... Jim Thomlinson "Felix" wrote: I seem to be unable to return a list of all sheets in a Workbook that are currently selected by the user. Basically I want to return the Array in Worksheets(array("x",'y","z")).select and I 'm having trouble finding a way to return the collection of selected Worksheet once the are selected by the user. Any help would be appreciated, Felix |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
for each sh in ActiveWindow.Selectedsheets
msgbox sh.name Next -- Regards, Tom Ogilvy "Felix" wrote: I seem to be unable to return a list of all sheets in a Workbook that are currently selected by the user. Basically I want to return the Array in Worksheets(array("x",'y","z")).select and I 'm having trouble finding a way to return the collection of selected Worksheet once the are selected by the user. Any help would be appreciated, Felix |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you, worked like a charm
"Tom Ogilvy" wrote: for each sh in ActiveWindow.Selectedsheets msgbox sh.name Next -- Regards, Tom Ogilvy "Felix" wrote: I seem to be unable to return a list of all sheets in a Workbook that are currently selected by the user. Basically I want to return the Array in Worksheets(array("x",'y","z")).select and I 'm having trouble finding a way to return the collection of selected Worksheet once the are selected by the user. Any help would be appreciated, Felix |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
vb code to copy and list selected row to diff sheets | Excel Discussion (Misc queries) | |||
Sum of selected cells from different sheets in a new workbook | Excel Worksheet Functions | |||
How to repeat a code for selected sheets (or a contiguous range of sheets) in a Workbook? | Excel Worksheet Functions | |||
How to repeat a code for selected sheets (or a contiguous range of sheets) in a Workbook? | Excel Programming | |||
return a data list depending on a value selected within a drop dow | Excel Discussion (Misc queries) |