Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ignoring case or worksheet name

Status
Not open for further replies.

willyboy58

Technical User
May 29, 2003
86
US
How can I ignore the case of the worksheet name in the code below? If the worksheet name was entered as "clntRATE" or "ClNtRaTe" (or any other variation of upper and/or lower case), the code below doesn't recognize the variations. It only recognizes "CLNTrate"

For Each sh In .Worksheets
If sh.Name = "CLNTrate" Then

I've looked at MatchExactly, but not sure if that is what I need.

TIA

Bill

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top