VBA syntax to indicate times/multiply operator after "Like"

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Using XL 2003 & 97

In VBA code what is the correct syntax after "Like"
(to indicate "wildcard before" + Multiply sign (Asterick) + "any number" +
"wildcard after."

The challenge is how to code the use of the Asterick
1) as a wild card; then
2) as an operator; then
3) as a wild card again

Attempted:
Like "*" & * & "#*"

Thoughts?

TIA

Dennis
 
From XL/VBA Help ("Like operator")
Note To match the special characters left bracket ([), question mark (?),
number sign (#), and asterisk (*), enclose them in brackets.

note the second "s" in "asterisk".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top