Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

number of the sheet 2

Status
Not open for further replies.

kenguru

Programmer
May 14, 2004
173
RO
Hello,

How can i return the number of the sheet ABC?
I tryed:
drb=Sheet("ABC").Names.Count
but it didn't work.

Thank you,
Kenguru
 
A starting point:
For drb = 1 To Sheets.Count
If Sheets(drb).Name = "ABC" Then Exit For
Next

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
drb= ActiveSheet.Index
[tab]or
drb= Sheets("abc").Index

[tt]_____
[blue]-John[/blue][/tt]
[tab][red]The plural of anecdote is not data[/red]

Help us help you. Please read FAQ181-2886 before posting.
 
[cheers]

[tt]_____
[blue]-John[/blue][/tt]
[tab][red]The plural of anecdote is not data[/red]

Help us help you. Please read FAQ181-2886 before posting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top