View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Steve Garman Steve Garman is offline
external usenet poster
 
Posts: 107
Default How to detect current active sheet number

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