disable toolbar buttons

J

John Devlon

Hi everyone,

Does anyone know how to disable some toolbar buttons (so they apprear to be
gray) using vba ?

For example ..
the italic-, bold- and underline-buttons
the font-popup in the toolbaar...

Thanx

JD
 
H

Helmut Weber

Hi John,

like this, for example:

MsgBox Application.CommandBars("Standard").Controls(4).Caption
Application.CommandBars("Standard").Controls(4).Enabled = True

Greetings from Bavaria, Germany

Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
http://word.mvps.org/
 
H

Helmut Weber

Not my day,
that was the line to activate the button again
Application.CommandBars("Standard").Controls(4).Enabled = True
but you'll know, what to modify, I think.

Greetings from Bavaria, Germany

Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
http://word.mvps.org/
 

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