J
Joey Che
Hi,
I am developing a office addin with vs2003(c++), but some behaviors o
the word addin are strange.So i write some vba code to verify them.
Se
newItem1=CommandBars("Insert").Controls.Add(Type:=msoControlButton)
newItem1.Caption = "1111"
Se
newItem2=CommandBars("Insert").Controls.Add(Type:=msoControlButton)
newItem2.Caption = "2222"
Se
newItem3=CommandBars("Insert").Controls.Add(Type:=msoControlButton)
newItem3.Caption = "3333"
The result is i do added three control buttons under the "Insert" menu
but the first button's caption is 3333, and the others' are blank.
The same code is work well under the "View" menu.So, is it a bug o
word or i miss something?
Thanks,
Joe
I am developing a office addin with vs2003(c++), but some behaviors o
the word addin are strange.So i write some vba code to verify them.
Se
newItem1=CommandBars("Insert").Controls.Add(Type:=msoControlButton)
newItem1.Caption = "1111"
Se
newItem2=CommandBars("Insert").Controls.Add(Type:=msoControlButton)
newItem2.Caption = "2222"
Se
newItem3=CommandBars("Insert").Controls.Add(Type:=msoControlButton)
newItem3.Caption = "3333"
The result is i do added three control buttons under the "Insert" menu
but the first button's caption is 3333, and the others' are blank.
The same code is work well under the "View" menu.So, is it a bug o
word or i miss something?
Thanks,
Joe