Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word template 2002 Toolbars missing with Dialogs

Status
Not open for further replies.

larrwill

Programmer
Mar 14, 2001
6
US
I have a Word template that works fine with Word 2000 and Windows 2000 but when using the template with Word 2002 and XP, the tool bars will not display. The template is run from a VB 6 program. Below is a simple example of the problem code.

Word Template:
Public Sub Main()

Application.Dialogs(wdDialogInsertPicture).Display

UserForm1.Show vbModeless

End Sub

VB Program:
Dim poWord As New Word.Application
If Not poWord Is Nothing Then
poWord.WindowState = wdWindowStateNormal

poWord.Documents.Add Template:="c:\projects\testdoc3.dot"
DoEvents
End If

Thanks...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top