word doc with fillin fields opens with no toolbars

T

ttrax

Hi,

I'm using vba to open word documents using templates.

I've got a problem where if I open a document using a template that
contains fillin fields, the document opens (after the user has entered
values into the fillin fields), but with no toolbars - not even the
Menu toolbar.

However, if I open a document using a template that doesn't have the
fillin fields, the document opens and the toolbars are there.

If I manually open a document using the template containing fillin
fields, I don't get the missing toolbars problem.

The vba code I have to open the document is:
-------
Dim WordObj As Word.Application
Set WordObj = CreateObject("Word.Application")
Dim objWord As Word.Document
Dim strFile As String

strFile = "C:\Program Files\Microsoft
Office\Templates\NotificationTemplate.dot"
Set objWord = WordObj.Documents.Add(strFile)
WordObj.Visible = True
WordObj.Activate
--------

Can anyone help?

Thanks,
t.
 
W

Word Heretic

G'day "ttrax" <[email protected]>,

Is the template with toolbars a global template in the startup drawer?
They are the only ones available no matter the document template
(other than Normal, but don't use that for code etc).

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


ttrax reckoned:
 

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