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