FuzzyTom
New Member
- Joined
- May 26, 2011
- Messages
- 24
Hi,
I tried to use this code in VBA
if ClName.Formula = Evaluate("=if(iserror(find("ccs",ClName)),0,1) "=" 1 then
I know it is not correct, but here is what I am hoping to achieve.
I would like to check the variable ClName to see if it has an extension of "ccs". For example the clients name, ClName, might be Dennis Morley which is a general client but then I might have a Brian Shaw-ccs and my VBA code above was my attempt to see if I could identity this client in a list of clients. As I loop thru these clients I will me naming the Tabs after each client and and giving each tab a distinctive color ... the clients with the "ccs" extension will have a different tab color than the general clients.
Any help, direction, pointers and tips would be appreciated.
Thanks.
I tried to use this code in VBA
if ClName.Formula = Evaluate("=if(iserror(find("ccs",ClName)),0,1) "=" 1 then
I know it is not correct, but here is what I am hoping to achieve.
I would like to check the variable ClName to see if it has an extension of "ccs". For example the clients name, ClName, might be Dennis Morley which is a general client but then I might have a Brian Shaw-ccs and my VBA code above was my attempt to see if I could identity this client in a list of clients. As I loop thru these clients I will me naming the Tabs after each client and and giving each tab a distinctive color ... the clients with the "ccs" extension will have a different tab color than the general clients.
Any help, direction, pointers and tips would be appreciated.
Thanks.