ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Shet Number Position (https://www.excelbanter.com/excel-programming/340885-shet-number-position.html)

Sheets number position[_2_]

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

Norman Jones

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




Chip Pearson

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





All times are GMT +1. The time now is 04:25 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com