Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi guys
When prohramming, I want to know the sheet number, how could I get it Thanks Mike |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
ActiveSheet.Index will give you the sheet's number, regardless of its name
But if you're looking for something like "Sheet1" then you'd be better off withActiveSheet.Name Mike Chen wrote: Hi guys, When prohramming, I want to know the sheet number, how could I get it? Thanks, Mike |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Mike,
depends what you mean by sheet number: Dim j as long for j=1 to Worksheets.count msgbox "sheet number " & j & " is named " & worksheets(j).name next j this shows you the sequence number in the worksheets collection: is that what you are looking for? regards Charles ______________________ Decision Models FastExcel Version 2 now available. www.DecisionModels.com/FxlV2WhatsNew.htm "Mike Chen" wrote in message ... Hi guys, When prohramming, I want to know the sheet number, how could I get it? Thanks, Mike |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Steve
Thanks, It is just what I want! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to add todays date (static) to the current active cell using m | Excel Discussion (Misc queries) | |||
Populate current active cell - Help Please!! | Excel Worksheet Functions | |||
Identify current active cell | Excel Worksheet Functions | |||
Return number of current sheet | Excel Worksheet Functions | |||
Detect when Active Cell Changes | Excel Programming |