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

Display Tool bar with windowstate - Help

Status
Not open for further replies.

newbee2

Technical User
Apr 21, 2002
85
Hi,
From access I can mailmerge to a word document, save it, and then display the Doc in a window so that it can be added to etc.
What I can't do is get the toolbar etc to show, I can only get the Window view. Using the following code.
'Highlight the entire Word Document and update fields, so the data
'written to the custom doc properties is displayed in the
'DocProperty fields.
With objWord
.Selection.Wholestory
.Selection.Fields.Update
.Selection.Homekey unit:=6
.Activewindow.windowstate = wdWindowstateNormal
.Visible = True
.Activate
End With

What is needed is the full shabang to show so that the document can be printed etc instead of the window view.
Thanking anyone in advance.
Kind Regards
Bill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top