Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2005

Tip: Looking for answers? Try searching our database.

disable toolbar buttons

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John Devlon - 29 Jan 2005 14:22 GMT
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
Helmut Weber - 29 Jan 2005 14:38 GMT
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/
Helmut Weber - 29 Jan 2005 14:42 GMT
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/
John Devlon - 29 Jan 2005 15:38 GMT
Dear Mr. Weber,

Thanx a lot ...
It works like a charme ...

Kind regards

JD

> Not my day,
> that was the line to activate the button again
[quoted text clipped - 7 lines]
> Word XP, Win 98
> http://word.mvps.org/ 
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.