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

Word OLE object problem

Status
Not open for further replies.

daimaou

Programmer
Apr 4, 2001
154
PT
I'm working with a MS Word OLE Object on my VB application. The thing is everytime I enter the edit mode on the OLE object all the toolbars I've active in MS Word will appear giving the application a somewhat weird aspect.
So I wonder how can I disable this on the OLE object? If I open word, make all toolbars to invisible then they won't appear on my app, but what I want is everytime I start my app to turn the toolbars.visible=False.

I've tryed:

For each cbar in CommandBars
cb.visible=false
Next

but this doesn't seem to be doing anything at all...
I'm obviously missing something can anyone help me out?

(because if I run this in a macro on MS Word effectivly this will turn all command bars to invisible, but doing it from VB it doesn't seem to work at all, maybe I'm making bad references to something?)

TIA

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top