-
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
-
Forum Rules