![]() |
#4
|
||||
|
||||
![]()
If you look at the main macro, you will see a section that appears green coloured. That code is commented out and does nothing. If you remove the apostrophes from the start of each green coloured line that code will be run along with the rest of the macro to renumber the chapters.
To add your fixed code (which should be bookmarked in the source template also) locate the line Code:
Next oCC Code:
'Add this code Set oRng = oDoc.Range oRng.Collapse 0 oRng.FormattedText = oSource.Bookmarks("The name of the bookmark with the fixed text").Range.FormattedText
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Bookmark will not show/hide based on CC Checkbox | lord_kaiser | Word VBA | 1 | 04-17-2018 01:19 AM |
![]() |
namrehx | Word VBA | 16 | 12-14-2017 01:45 PM |
How to use checkbox to show and hide bookmarked text? | namrehx | Word VBA | 1 | 12-12-2017 02:17 PM |
![]() |
derajlance | Word VBA | 1 | 05-13-2016 01:55 PM |
![]() |
tammytran105 | Word VBA | 7 | 10-02-2014 04:30 PM |