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

Displaying Menu when loading Word from VB App

Status
Not open for further replies.

caguila

MIS
Mar 20, 2002
28
0
0
GB
I am creating a document automatically from a VB App and displaying it after creation. It automatically hides all menubars or custom command bars even when not in full screen view. Any tips
 
I don't know why it happens, but you should be able to turn them back on by manipulating the Application.Commandbars object, e.g.

for i=1 to 2:application.commandbars(i).visible=true:next

Rob
[flowerface]
 
RobBroekhuis ,
For some reason it has no effect. I even when I put the code on the AutoNew module of the template the document is based on, it says the method "visible" property failed. When you do it manually from the document's vba environment, it works but not when run from VB.

C.

 
Ihave the same problem with an AutoOpen and AutoNew macro of a protected template so any help anyone can provide would be great. It says that the command bar is visible even though it is not. I even try to tell it to make it visible again but it won't
 
Hi there. This is essentially the same as your thread JudyL. And a good question, although more of a VBA thread.

Post code,as I am sure there are some here who may be able to help.

Specifically, how are you, exactly, creating the Word document from your VB app? Are all relevant and required references loaded? Are there other global addins present?


Gerry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top