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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

For some reason I'm having trouble

Status
Not open for further replies.

Luis939

MIS
Feb 28, 2003
453
US
For some reason I'm having trouble with wildcards,
I'm going to have some cells written as Newark, NJ.
And so obviously I want cells that DONT match that pattern
so i tried
if activecell.value <> &quot;*, ??&quot; then DO WHATEVER
but its not working

i tried if activecell.value = &quot;*, ??&quot; then do whatever

but even that didnt recognize the cell with Newark, NJ in it

what am i doing wrong, i tried using activecell.text and activecell but they didnt work either, what am I doing wrong, thanks!
 
Hi there,

try:

Code:
if NOT(activecell.value LIKE &quot;*, ??&quot;) then

Nath
 
Oh ok, because I was going to say thanks alot man before, but something told me-how do I really know it's a guy. Later!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top