Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Bonni Garcia   on Nov 12 In MS Office Category.

  
Question Answered By: Douglas Sullivan   on Nov 12

You need to iterate through the worksheet  names and check for "HQ".

Dim olWorksheet As Worksheet
Dim slWorkSheet As String

For Each olWorksheet In Worksheets
slWorkSheet = UCase(olWorksheet.Name)
If slWorkSheet = "HQ" Then
' Do something.
Else
' Do something else.
End If
Next olWorksheet

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Disable Workbook event procedure with code? Or get search suggestion and latest updates.


Tagged: