Hello All
I'm trying to grab the Headers and Footers of Word documents and Save them as pictures. I have been trying out a bit of coding that i found on this wonderful forum.
The code i have been trying is:
Dim myWord As Word.Application
Dim myDoc As Word.Document
Set myWord = GetObject(, "Word.Application")
Set myDoc = myWord.ActiveDocument
myDoc.Select
With myDoc.Content
.WholeStory
.CopyAsPicture
End With
myDoc.Close False
myWord.Quit False
Set myDoc = Nothing
Set myWord = Nothing
SavePicture Image1.Picture, "c:\word.emf"
This coding does grab the document text and any pictures/Tables in it but not the headers and footers.
Any help would be appriciated.
Thank you.
I'm trying to grab the Headers and Footers of Word documents and Save them as pictures. I have been trying out a bit of coding that i found on this wonderful forum.
The code i have been trying is:
Dim myWord As Word.Application
Dim myDoc As Word.Document
Set myWord = GetObject(, "Word.Application")
Set myDoc = myWord.ActiveDocument
myDoc.Select
With myDoc.Content
.WholeStory
.CopyAsPicture
End With
myDoc.Close False
myWord.Quit False
Set myDoc = Nothing
Set myWord = Nothing
SavePicture Image1.Picture, "c:\word.emf"
This coding does grab the document text and any pictures/Tables in it but not the headers and footers.
Any help would be appriciated.
Thank you.