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.

Re: word doc with fillin fields opens with no toolbars by Word

Word
Fri Apr 08 07:34:15 CDT 2005

G'day "ttrax" <tramtrax@gmail.com>,

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:

>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.