Hello,
I need to perform a certain action by determining if a sheet name contains a certain phrase. In this case, I'm looking for the word "Confidential". That word may appear anywhere in the sheet name so I wasn't sure how I could use the Mid function. Also, other words may come before or after it so I didn't have luck using wildcards like
Just need some direction to get this code to recognize the sheet by whether or not the sheet contains the word "Confidential".
Thank you.
I need to perform a certain action by determining if a sheet name contains a certain phrase. In this case, I'm looking for the word "Confidential". That word may appear anywhere in the sheet name so I wasn't sure how I could use the Mid function. Also, other words may come before or after it so I didn't have luck using wildcards like
Code:
If LCase(ws.Name) Like "*Confidential" Then...
Thank you.