selection.find question

V

vbaNOOB

Hi,

for selection.find, how can I search sth that start will the word "Chapter"

If I use regexp, I can set pattern = "^Chapter"
Can I use "^" in wildcards selection.find?

Many Thanks
 
J

Jay Freedman

Use the character '<' for the start of a word, and '>' for the end of
a word.

The character '^' signals the start of an ASCII code, such as ^13 for
a paragraph mark.

Word's wildcards are similar to regexp expressions, but there are many
small differences. For the whole story, see
http://www.gmayor.com/replace_using_wildcards.htm.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
 

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

Top