![]() |
#5
|
|||
|
|||
![]()
The Demo() macro did remove the preexisting bookmark "LastEntryThusFarMadeInTblOfExhibits", but did the macro did not create a new bookmark "LastEntryThusFarMadeInTblOfExhibits".
I bet your next response will accomplish that. But alas, no good deed goes unpunished. Your Demo() macro contained a lot of code that I do not understand ... because I do not understand how ranges work, and I have never found a tutorial explaining ranges (and how to use them) that I could understand enough to be able to use ranges. I think your code between the line: Do While .Find.Foundand the line: If Not RngFnd Is Nothing Then .Bookmarks.Add Name:="LastEntryThusFarMadeInTblOfExhibits", Range:=RngFndwas intended to do the following: 1. Create something analogous to a "selection point" at the place in the document where the search found the text "[FULLNAME: PDF] ", and 2. Create the new bookmark "LastEntryThusFarMadeInTblOfExhibits" at that new "selection point" ... or something like that. I would like the macro to insert the new bookmark "LastEntryThusFarMadeInTblOfExhibits" in column #1 on the first line of the next Heading 1 where the search found the text "[FULLNAME: PDF] " (i.e., the Heading 1 paragraph, where the search found the text "[FULLNAME: PDF] ", after the Heading 1 paragraph where the preexisting bookmark "LastEntryThusFarMadeInTblOfExhibits" had been, before it was deleted by the macro). But even more than that, I would like to understand how to do it. So, I would appreciate any suggestions (e.g., online tutorials or Reference URLs, or Google search words) you could give me to help me find materials so that I could understand how you are using the "range" thing to get where we want to be. Lastly, can you only have one range in existence at a time? One more thing, why is the sky blue? Thanks again, Marc |
Tags |
hidden text, vba code, vba find and replace |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to find all string within string. | PRA007 | Word VBA | 18 | 02-12-2016 08:11 PM |
VBA to Find and Format Text string defined using Inputbox within selection | sistemalan | Word VBA | 7 | 10-03-2014 07:28 AM |
![]() |
omahadivision | Excel Programming | 12 | 11-23-2013 12:10 PM |
![]() |
errtu | Word | 1 | 01-31-2013 02:09 PM |
![]() |
paulkaye | Word | 4 | 12-06-2011 11:05 PM |