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 / June 2005

Tip: Looking for answers? Try searching our database.

CommandBars("formatting").Controls("Highlight").?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rick Labs - 17 Jun 2005 21:06 GMT
From VBA how do I make the Highlight button on the Formatting toolbar go down?

Thought is would be as simple and logical as:

CommandBars("formatting").Controls("Highlight").state = msoButtonDown
Klaus Linke - 17 Jun 2005 23:08 GMT
> From VBA how do I make the Highlight button on the Formatting toolbar go down?
>
> Thought is would be as simple and logical as:
>
> CommandBars("formatting").Controls("Highlight").state = msoButtonDown

Hi Rick,

That control isn't a button (at least in Word2003 it isn't) and doesn't have a State property.

And if it had, it would likely be read-only, and the state would depend on whether or not you have selected highlighted text.

Regards,
Klaus
 
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.