![]() |
tool tips & custom buttons
what is the code to change the tool tip for the button in this example:
Private Sub AddToolbar() Dim tbb As Object On Error Resume Next Toolbars("Test").Delete On Error GoTo 0 Set oTB = Toolbars.Add(Name:="Test") With oTB .Left = 117 .Top = 186 Set tbb = .ToolbarButtons.Add(Button:=23, Befo=1) tbb.OnAction = ThisWorkbook.Name + "!custommacro" .Width = 200 .Visible = True End With End Sub question 2 can you create/design a custom button in excel 2007? if so, how? |
tool tips & custom buttons
You should use CommandBars and CommandBarControls rather than
Toolbars. Toolbars are obsolete. Cordially, Chip Pearson Microsoft Most Valuable Professional Excel Product Group, 1998 - 2009 Pearson Software Consulting, LLC www.cpearson.com (email on web site) On Tue, 7 Apr 2009 07:01:30 -0700, daniel wrote: what is the code to change the tool tip for the button in this example: Private Sub AddToolbar() Dim tbb As Object On Error Resume Next Toolbars("Test").Delete On Error GoTo 0 Set oTB = Toolbars.Add(Name:="Test") With oTB .Left = 117 .Top = 186 Set tbb = .ToolbarButtons.Add(Button:=23, Befo=1) tbb.OnAction = ThisWorkbook.Name + "!custommacro" .Width = 200 .Visible = True End With End Sub question 2 can you create/design a custom button in excel 2007? if so, how? |
All times are GMT +1. The time now is 10:50 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com