word 2003 add-in : CommandBarButton.State

W

Wayne S.

For a Word 2003 Add-in, I need to add a menu command to an existing menu. I
am adding a CommandBarButton object, which is working fine, but I cannot
alter the State property of the object. (I want to be able to toggle its
state between msoButtonDown and msoButtonUp.) When I try to change the state
I get an exception indicating that the set_State command returned a value of
0x800A01A8. What does this error code indicate? Is there a way to get
around this?

Thanks.

Wayne
 
V

vince

For a Word 2003 Add-in, I need to add a menu command to an existing menu. I
am adding a CommandBarButton object, which is working fine, but I cannot
alter the State property of the object. (I want to be able to toggle its
state between msoButtonDown and msoButtonUp.) When I try to change the state
I get an exception indicating that the set_State command returned a value of
0x800A01A8. What does this error code indicate? Is there a way to get
around this?

Thanks.

Wayne

Try to use a delegate to alter the button.
 

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