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

  • Follow


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 

0
Reply Norm 3/9/2010 11:55:28 PM


0 Replies
1608 Views

(page loaded in 0.033 seconds)

Similiar Articles:
















7/23/2012 1:40:59 AM


Reply: