J
James Wang
Hi,
I would like to control my add-in CommandBar programatically. But it
seems not to work properly.
I did some simple testing. Set CommandBar.Visible property to true in
WindowActivate event. I have two Word documents open and I mannually
turn off my add-in commandbar through View->ToolBar command for the
two documents. Then switch between the two documents. The commandbar
is supposed to show when the document is activated. For one document,
it works well, but it does not work for another one. I checked the
visible property of my commandbar, it's true. But I cannot see the
commandvar on the screen. Even through I close the document which does
not work and open another document instead, it 's still the same. It
has nothing to do with the document itself.
I would like to control my add-in CommandBar programatically. But it
seems not to work properly.
I did some simple testing. Set CommandBar.Visible property to true in
WindowActivate event. I have two Word documents open and I mannually
turn off my add-in commandbar through View->ToolBar command for the
two documents. Then switch between the two documents. The commandbar
is supposed to show when the document is activated. For one document,
it works well, but it does not work for another one. I checked the
visible property of my commandbar, it's true. But I cannot see the
commandvar on the screen. Even through I close the document which does
not work and open another document instead, it 's still the same. It
has nothing to do with the document itself.