View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Cleber Inacio Cleber Inacio is offline
external usenet poster
 
Posts: 5
Default Detect existence of a sheet

Hi,

I'm having problems when trying to acess a sheet in a workbook if this sheet
does'nt exist. I tried some "On Error" tricks....but it dodn't worked.
Here is the piece of code where I try to activate the sheet:
....
genesis_wb.Activate
genesis_wb.Sheets(nome_al).Activate 'nome_al is a string
....

Is there a way to check if the sheet(nome_al) exist before activating it?
(without on error techniques please).

Thanks in advance!

Cleber