ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Getting the index number by supplying worksheet name (https://www.excelbanter.com/excel-programming/317668-getting-index-number-supplying-worksheet-name.html)

ajitpalsingh200[_19_]

Getting the index number by supplying worksheet name
 

Hie

lets say the worksheet name is "sheet1", how do i get the index numbe
of that particular worksheet?

thankx in advanc

--
ajitpalsingh20
-----------------------------------------------------------------------
ajitpalsingh200's Profile: http://www.excelforum.com/member.php...fo&userid=1615
View this thread: http://www.excelforum.com/showthread.php?threadid=31998


JE McGimpsey

Getting the index number by supplying worksheet name
 
One way:

Dim nIndex As Long
nIndex = Worksheets("sheet1").Index


In article ,
ajitpalsingh200 wrote:

lets say the worksheet name is "sheet1", how do i get the index number
of that particular worksheet?



All times are GMT +1. The time now is 07:26 AM.

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