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