Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / July 2005

Tip: Looking for answers? Try searching our database.

Parse Data from a Word header

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
beekie_327@yahoo.com - 12 Jul 2005 15:48 GMT
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
Jonathan West - 12 Jul 2005 16:04 GMT
>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.

Signature

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 

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.