![]() |
|
#6
|
||||
|
||||
|
Hi Susan,
In my code, the Style to search for is defined in the line: .Style = "myStyle" With Word's Find.Execute method, the found range automatically becomes the active range. And, when the Bookmarks.Add method is invoked without specifying the range to bookmark, it bookmarks the active range. I could have added .Duplicate as the optional Range parameter, but that would have been redundant.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Creating a Macro in VBA where a Dropdown Box Populates Text Bookmarks below
|
roseheller | Word VBA | 5 | 02-23-2021 03:10 PM |
| Macro to hide/unhide text to call variable bookmarks | Dr. Z | Word VBA | 2 | 05-27-2017 08:20 PM |
Transfer word doc bookmarks to excel using macro
|
Bedsy | Word VBA | 4 | 03-15-2015 10:58 PM |
Form updating Bookmarks - writes to the bookmarks multiple times
|
PeterPlys | Word VBA | 13 | 01-14-2015 06:41 AM |
Macro to list all bookmarks
|
Marrick13 | Word VBA | 4 | 02-09-2012 08:00 PM |