View Single Post
 
Old 09-29-2013, 10:04 PM
macropod's Avatar
macropod macropod is online now Windows 7 32bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi stildawn,

Basically:
Code:
With word 
    .Visible = True
    .Application.Activate 
    .Documents.Open (Template) 
    .ActiveDocument.Sections(1).Headers(wdHeaderFooterPrimary).Range.InsertBefore job
End With
Since you already have the 'job' variable, though, I don't see any value in having another macro retrieve it from the header. Why not simply continue using the same variable?
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote