programmatically inserting a header

R

rmanchu

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
 
R

rmanchu

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top