Thank you so much for your help. It totally worked. Since I already had section breaks elsewhere in the code, I modified it to the following, which gave me exactly what I needed:
'Create Header with page numbers
With ActiveDocument.Sections(x).Headers(wdHeaderFooterPrimary)...
I'm using VBA to insert the page number in a header. It's working, exept for a couple of things. I want it to insert the page number at the current position, and restart numbering at each section. I increment the section # with the variable x. Currently, it's inserting the page number at...
I have programmed a letter using automation to Word VBA. The letter works like a mail merge so it might cycle thru several records when it runs. I've separated each letter in the document with a section break. I'm having a problem with the header. I've successfully added a header, but when...