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 / November 2005

Tip: Looking for answers? Try searching our database.

programmatically inserting a header

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rmanchu@gmail.com - 17 Nov 2005 06:38 GMT
hi

i've got a table in my startup folder template

i need to programattically insert it into the header of a some other
templates. i can't seem to find anything on this.

Header.Range.Text = "Text"

this is not sufficient fo this right? as i need to insert the whole
table object with contents into the header

please help
thanx
riyaz
rmanchu@gmail.com - 17 Nov 2005 07:41 GMT
hi

i've managed to solve this partially

Word.Application.Documents("BaseRM").Bookmarks("FormHeader").Range.Select
   Word.Application.Selection.Copy
   If Not wDoc.ProtectionType = wdNoProtection Then wDoc.Unprotect
   wDoc.Select
   wDoc.ActiveWindow.View.Type = wdPrintView
   wDoc.ActiveWindow.View.SeekView = wdSeekPrimaryHeader
   Word.Application.Selection.Paste
   wDoc.ActiveWindow.View.Type = wdNormalView
   wDoc.Protect wdAllowOnlyFormFields, True
   wDoc.ActiveWindow.View.Type = wdPrintView

now the problem is, i have to keep my startup template "baseRM"
open???? how to solve this?

thanx again
riyaz
 
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.