-
What is Me? Within Word itself, this only applies for procedures in THisDocument. Where is this code?
Why are you using interop?
What version of Word are you using? Try to always mention this when you post.
What application are you running it from?
A Type error is just that. It means either:
the type is not valid, or the syntax is incorrect.
Generally, it is not difficult to put text into headers (like you appear to trying to do) with VBA.
[vba]
Dim oSection As Section
For Each oSection In ActiveDocument.Sections
oSection.Footers(wdHeaderFooterPrimary).Range.Text = "Confidential"
Next
[/vba]works perfectly. At least, running from Word.
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