sheets count

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
Hi,

The sheets index property returns its position in the sheets collection.
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top