You are here: Office-Outlook.com  / Outlook Forum

Bug ? Add custom buttons to the "Insert" command bar -- Word 2003

Home » Outlook addins and plugins development » Developer Outlook add-ins
Bug ? Add custom buttons to the "Insert" command bar -- Word 2003 [message #894] Sun, 20 August 2006 23:57 Go to next message
Joey Che
Messages: 2
Registered: August 2006
Junior Member
Hi,
I am developing a office addin with vs2003(c++), but some behaviors of
the word addin are strange.So i write some vba code to verify them.

Set
newItem1=CommandBars("Insert").Controls.Add(Type:=msoControlButton)
newItem1.Caption = "1111"

Set
newItem2=CommandBars("Insert").Controls.Add(Type:=msoControlButton)
newItem2.Caption = "2222"

Set
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 of
word or i miss something?

Thanks,

Joey


--
Joey Che
------------------------------------------------------------ ------------
Joey Che's Profile: http://www.officehelp.in/member.php?userid=4196
View this thread: http://www.officehelp.in/showthread.php?t=1173490

Posted from - http://www.officehelp.in
Previous Topic:Looking for templates Add-Ins for Excel 2003?
Next Topic:outlook com add-in 2002 vs 2003
Goto Forum: