Results 1 to 2 of 2
  1. #1
    New Lounger
    Join Date
    Aug 2002
    Location
    England
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Inserting a graphic in a header or footer (2002 SP1)

    I have a template with defined header / footer fields. I want to be able to add a picture frame into this template, so that a user can choose a graphic for insertion on all pages of the document through the use of a UserForm and the File/Open dialogue.

    All I need to know is how I refer to the picture frame in the template?

    Help would be very much appreciated.

  2. #2
    Lounger
    Join Date
    Jan 2001
    Location
    Kingwood, Texas, USA
    Posts
    49
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Inserting a graphic in a header or footer (2002 SP1)

    Try this:
    Sub FrameInHeaderExample()
    ActiveDocument.PageSetup.DifferentFirstPageHeaderF ooter = True
    With ActiveDocument.Sections(1).Headers(wdHeaderFooterF irstPage)
    .Range.Frames(1).Select 'Assuming you already have the frame in place
    Selection.EndKey Unit:=wdLine 'otherwise you'll delete the frame
    Selection.Paste
    End With
    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •