Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 61
Default sheet number

Hi,

Really simple question.
I know that one can select a sheet by using "sheets(i)" where "i" is the
relative number of the sheet in the workbook.
But how does one do the reverse - get the sheet number of the active sheet?
I tried "help" but could not find an answer.

-
eugene
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default sheet number

Hi Eugene,

Try :

Dim i As Long

i = ActiveSheet.Index


---
Regards,
Norman



"eugene" wrote in message
...
Hi,

Really simple question.
I know that one can select a sheet by using "sheets(i)" where "i" is the
relative number of the sheet in the workbook.
But how does one do the reverse - get the sheet number of the active
sheet?
I tried "help" but could not find an answer.

-
eugene



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 61
Default sheet number

perfect
thanks

--
eugene


"Norman Jones" wrote:

Hi Eugene,

Try :

Dim i As Long

i = ActiveSheet.Index


---
Regards,
Norman



"eugene" wrote in message
...
Hi,

Really simple question.
I know that one can select a sheet by using "sheets(i)" where "i" is the
relative number of the sheet in the workbook.
But how does one do the reverse - get the sheet number of the active
sheet?
I tried "help" but could not find an answer.

-
eugene




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
Macro to lookup a sheet, number, then display in origonal sheet abbsy3 New Users to Excel 3 November 9th 10 12:19 PM
How can I refer to sheet number not sheet (name)? DK Excel Worksheet Functions 2 March 30th 09 11:06 PM
find an exact number in a different sheet and use the cell containing the number to output information [email protected] Excel Programming 4 February 18th 07 08:59 PM
Using the Indirect function with a sheet number instead of a sheet name JDB Excel Worksheet Functions 5 December 31st 05 03:03 PM
Macro, select Sheet "Number", NOT Sheet Name DAA Excel Worksheet Functions 4 November 30th 04 05:29 PM


All times are GMT +1. The time now is 04:54 PM.

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"