View Single Post
 
Old 06-30-2020, 07:23 AM
Fred Doolie Fred Doolie is offline Windows 10 Office 2010
Novice
 
Join Date: Jan 2019
Posts: 3
Fred Doolie is on a distinguished road
Default Auto-incrementing variable needed for macro - to automatically increment chapter numbering & headers

How do I put an automatically incrementing value into a macro? I'm writing a book and have created a macro to start a chapter. It does a page break, goes into header 1 mode, enters "Chapter XXX", goes into chaper title mode and enters "CHAPTER TITLE", then drops down a line and enters normal mode.
I'd like to replace that "XXX" with something that would increment every time I used the macro. That way I don't have to keep scrolling back to see what the current chapter should be.

Last edited by Charles Kenyon; 06-30-2020 at 08:05 AM. Reason: Change title to give better info about question
Reply With Quote