Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Newsgroup Archive
Word Newsgroups
Word VBA
Identify "various" in a bullet list.
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="DaveLett, post: 5885529"] Hi, Yes, you can have only various or as follows highlighted. You should break this line: If InStr(1, .Text, "various") Or InStr(1, .Text, "as follows") Then into two If, then structures and move the range object in each structure to be your words. Because you're going to insert the same comment for each, you'll need to have the line: ActiveDocument.Comments.Add Range:=oRng, Text:="AVOID" in both If/then. If you think you'll be using this for more than just these two words/phrases, I'd recommend that you make this a function that receives a string from a calling routine. Dave [/QUOTE]
Verification
Post reply
Forums
Archive
Newsgroup Archive
Word Newsgroups
Word VBA
Identify "various" in a bullet list.
Top