How to hide or disable toolbars and ribbon in word with vba or vb6

N

Norm

I am trying to hide or disable the ribbon and toolbars in Word 2007, within
a VB6 program, but have been unable to get it to work.

I am using early binding so that I can see the Word objects and methods, but
have been unable to find a combination that will work on my files.

Have tried
Dim wrd As Word.Application
Dim obar As Office.CommandBar

For Each obar In wrd.CommandBars
obar.Enabled = False
obar.visible = False
Next

I assume there is something I am missing here. What would be the best way to
do this?

Thanks,
Norm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top