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

R

Rick Labs

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
 
K

Klaus Linke

Rick Labs said:
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
 
Top