Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Shet Number Position

How do you return the number of a sheet in the sheets collection. I can
return the total number of sheets as in:

Sheets.Count

But I want the Sheet number.

Please help. Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Shet Number Position

Hi,

You have multiple responses at your previous post.

---
Regards,
Norman



"Sheets number position"
wrote in message ...
How do you return the number of a sheet in the sheets collection. I can
return the total number of sheets as in:

Sheets.Count

But I want the Sheet number.

Please help. Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Shet Number Position

Use the Index property of a worksheet to get its position. E.g.,

Debug.Print Worksheets("Sheet3").Index


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Sheets number position"
wrote in message
...
How do you return the number of a sheet in the sheets
collection. I can
return the total number of sheets as in:

Sheets.Count

But I want the Sheet number.

Please help. Thanks



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Position of first number in array greater than a given number Krapdad Excel Worksheet Functions 4 April 3rd 09 05:02 PM
Excel spred shet utpal Excel Worksheet Functions 3 August 24th 07 11:46 PM
I need to convert a number to text but I need it to be 5 position Mike L. Excel Worksheet Functions 5 April 10th 07 05:31 PM
Protected work shet Stuart Carnachan Excel Discussion (Misc queries) 2 August 30th 06 04:16 PM
Unprotect shet, Password missed! SpeeD[_2_] Excel Programming 1 August 11th 03 03:33 PM


All times are GMT +1. The time now is 09:45 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"