HOWTO: View Microsoft Word Toolbars Using OLE Control |
Q112044
This article shows by example how to make a Visual Basic program display Microsoft Word version 6.0 toolbars. It is not possible to display the toolbars using the OLE control alone, so the following example uses an OLE object in combination with the OLE control.
When editing a Microsoft Word document that is in an OLE control, you may find it helpful to use the Microsoft Word toolbars. However, if you close all your toolbars, there is no way to use the OLE control alone to get the toolbars back. The following example shows how to access the Word toolbars after closing them.
Sub Command1_Click()
Dim wbObject As Object
ole1.Action = 7
Set wbObject = CreateObject("Word.basic")
wbObject.ViewToolbars "Standard", , , , , , , 1
End Sub Additional query words:
Keywords : kbAutomation kbCtrl kbVBp300 kbWord
Issue type : kbhowto
Technology :
|
Last Reviewed: March 7, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |