![]() |
|
#5
|
||||
|
||||
|
Add the two lines as shown below
Code:
Sub ReplaceHeaderFooter(ByVal oDoc As Document)
Dim oSec As Section
Dim oHead As HeaderFooter
Dim oFoot As HeaderFooter
Dim oRng As Range
Dim oShape As InlineShape
For Each oSec In oDoc.Sections
oSec.PageSetup.HeaderDistance = InchesToPoints(0.06)
oSec.PageSetup.FooterDistance = InchesToPoints(0#)
For Each oHead In oSec.Headers
'etc
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
| Tags |
| letterhead |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
headers/footers
|
scot | Word | 3 | 05-22-2015 09:45 AM |
| Macro for find/replace (including headers and footers) for multiple documents | jpb103 | Word VBA | 2 | 05-16-2014 04:59 AM |
Headers and Footers
|
Kingsmoss | Word | 3 | 04-28-2014 02:43 PM |
Headers and Footers
|
teza2k06 | Word | 1 | 05-14-2013 11:07 AM |
| Headers and Footers | OverAchiever13 | Word | 1 | 05-27-2010 01:30 PM |