Consulting

Results 1 to 4 of 4

Thread: VBA Problem: Inserting a header / footer

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Angry VBA Problem: Inserting a header / footer

    Private Sub UserForm_Click()

    Dim section As Microsoft.Office.Interop.Word.sections 'error here


    For Each section In Me.sections
    section.Footers(Word.WdHeaderFooterIndex.wdHeaderFooterPrimary) _
    .Range.Text = "Confidential"
    Next


    End Sub


    Keeps giving me a "user defined type not defined" error.. suggestions anyone?
    Last edited by iamthebest; 11-09-2008 at 01:02 AM.

Posting Permissions

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