Parse Data from a Word header

B

beekie_327

I need to pull demographic data from a table that is in a Word header
and footer to create a file header. Any ideas?
Thanks
Beckie
 
J

Jonathan West

I need to pull demographic data from a table that is in a Word header
and footer to create a file header. Any ideas?
Thanks
Beckie

You can get the unformatted text of the header of a word document as follows

strText =
ActiveDocument.Sections(1).Headers(wdHeaderFooterPrimary).Range.Text

Similar code will extract the text of the footer.

Beyond that, there is insufficient information as to what you want to do
with the text once you have it.


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 
Top