![]() |
|
|||||||
|
|
Thread Tools | Display Modes |
|
#2
|
|||
|
|||
|
First, stop messing with the header. Use the StyleRef Field instead. That is what it is designed to do.
Second, consider using AutoMatic Numbering tied to your Heading 1 or another style. How to create numbered headings or outline numbering in Ribbon Versions of Word by Shauna Kelly If you want to add a chapter heading, apply the style. If you add in the middle, it automatically updates everything after. This also gives you a good start on your Table of Contents. Generating a Table of Contents Why use Microsoft Word’s built-in heading styles? by Shauna Kelly If you really, really, want to do this the hard way, you could save your number as a custom document property. How to use a single VBA procedure to read or write both custom and built-in Document Properties To me, is seems like you are trying to re-invent the wheel. This stuff is built into Word. |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Custom auto incrementing integer prefixes on headers | ritmo2k | Word | 2 | 03-09-2018 06:39 AM |
| Macro needed for time calculation and auto insert | ballst | Excel Programming | 8 | 05-21-2015 03:54 PM |
| Auto Incrementing source for data validation | OfficeTemp99 | Excel | 1 | 05-13-2015 06:36 AM |
Preventing Auto Metadata - Help Needed!
|
samcmakin | Word | 1 | 04-09-2015 11:48 PM |
Outlook 2007 Auto-Reply: Help needed
|
gpang788 | Outlook | 5 | 11-09-2010 04:12 PM |