Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / April 2007

Tip: Looking for answers? Try searching our database.

selection.find question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
vbaNOOB - 02 Apr 2007 02:36 GMT
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
Jay Freedman - 02 Apr 2007 04:20 GMT
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        FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.

>Hi,
>
[quoted text clipped - 4 lines]
>
>Many Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.