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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

menu bar missing in Word App invoked through VB

Status
Not open for further replies.

skydive

Programmer
May 30, 2001
16
0
0
IE
I open a word template through VB and populate it's fields. I then save and open it as an doc. That all works great the problem is the menu bar or title bar (you know file, edit, view, ..) is not displayed neither is the icon bar.
I'm sure it can be set through a property of word.application through VB but I can't see it.
Thanks
Colin
Blue Skies! Soft Landings!!
 
How exactly do you open the document?

By OLE control on a VB form or by a SHELL command?
Michael Manos
Automation R&D
 
Hey Michael, Happy new year!!
I open it using OLE

Below find the code used:


Set wApp = CreateObject("Word.Application")
Set wDoc = CreateObject("Word.Document")
With wApp
Screen.MousePointer = vbHourglass
Set wDoc = .Documents.Add(Template:=sTemplate, NewTemplate:=False)
...
wDoc.SaveAs sFile
wApp.WindowState = 1 'wdWindowStateMaximize
wApp.Selection.HomeKey Unit:=6 'wdStory
.Visible = True
End With
OutputReportToWord = True Blue Skies! Soft Landings!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top