View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Die_Another_Day Die_Another_Day is offline
external usenet poster
 
Posts: 644
Default Checking for text in Sheet Name

If InStr(1,ActiveSheet.Name,"1") 0 Then
'1 is in the name
Else
'1 is not in the name
End If

HTH

Die_Another_Day

Barb Reinhardt wrote:
I am wanting to check for a specific grouping of text in the sheet name using
something similar to the SEARCH function. Let's say, for example, I want to
find if "1" is present in the sheet name. How would I code that?

Thanks,
Barb Reinhardt