Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() following is the code which creates toolbar buttons. I m using office xp 2003. When i start excel program, it doesnt display correct toolbar icon for which i hv given face-id. But when i move my mouse over the button, then it changes to the correct one. Code: -------------------- Sub CreateBar() Dim oBar As CommandBar Dim oKicker As CommandBarControl RemoveBar 'Prevents duplicate entry Set oBar = Application.CommandBars.Add(Name:="SKicker", Position:=1, Temporary:=True) oBar.Visible = True Set oKicker = oBar.Controls.Add(ID:=1, Befo=1) With oKicker .OnAction = "General.Show_SuperKicker" .FaceId = 9744 .Caption = "SUPERKICKER" End With Set oKicker = Nothing Set oBar = Nothing End Sub -------------------- I need to display correct toolbar-icon when excel program is started. Also some face-id doesnt work with office-2000-- why so?? It gives debug msg. -- ilyaskazi ------------------------------------------------------------------------ ilyaskazi's Profile: http://www.excelforum.com/member.php...o&userid=23969 View this thread: http://www.excelforum.com/showthread...hreadid=378265 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Icon Sets - Display icon in one cell depending upon value in anoth | Excel Worksheet Functions | |||
excel keeps crashing when starting the program | Excel Discussion (Misc queries) | |||
Starting another program out of Excel VB?? | Excel Worksheet Functions | |||
Email Icon on excel 200 toolbar | Excel Discussion (Misc queries) | |||
Can I add equation editior to my toolbar in EXCel as an icon? | Excel Worksheet Functions |