Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
how do I return a value for the sheets number position? I can return the name:
Sheets.Name But I want the value 34 if it were the 34th sheet out of 50 sheets. How do I find this? Please advise. Thank you |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
The sheets index property returns its position in the sheets collection. --- Regards, Norman "Sheets number position" <Sheets number wrote in message ... how do I return a value for the sheets number position? I can return the name: Sheets.Name But I want the value 34 if it were the 34th sheet out of 50 sheets. How do I find this? Please advise. Thank you |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sheets(sheet_name).Index
-- HTH Bob Phillips "Sheets number position" <Sheets number wrote in message ... how do I return a value for the sheets number position? I can return the name: Sheets.Name But I want the value 34 if it were the 34th sheet out of 50 sheets. How do I find this? Please advise. Thank you |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If you want to return the postion of the sheet then:
activesheet.index or sheets("MySheet").index If you want to refer to a sheet by its postion then sheets(34).select 'etc hope this helps Rowan Sheets number position wrote: how do I return a value for the sheets number position? I can return the name: Sheets.Name But I want the value 34 if it were the 34th sheet out of 50 sheets. How do I find this? Please advise. Thank you |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to count number of sheets | Excel Worksheet Functions | |||
Count sheets | Excel Discussion (Misc queries) | |||
Count the number of sheets. | Excel Discussion (Misc queries) | |||
COUNT over several sheets | Excel Discussion (Misc queries) | |||
sheets(count) code | Excel Programming |