Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Context menu of Cell
Is there any way that I can change the context menu of a cell in Excel
? Thanks for all your help. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Context menu of Cell
Yes, quite simple:
With Application.CommandBars("Cell") With .Controls.Add(Type:=msoControlButton) .BeginGroup = True .Caption = "Change text to numbers in selected sheet range" .OnAction = "MakeNumbers" .FaceId = 399 End With etc. RBS "MadDog" wrote in message oups.com... Is there any way that I can change the context menu of a cell in Excel ? Thanks for all your help. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Context menu of Cell
Dim oCtl As CommandBarControl
With Application.CommandBars("Cell") On Error Resume Next .Controls(20).Delete On Error GoTo 0 With .Controls.Add(Type:=msoControlButton) .BeginGroup = True .Caption = "My Button" .Style = msoButtonCaption .OnAction = "myMacro" End With End With -- HTH Bob Phillips (remove nothere from email address if mailing direct) "MadDog" wrote in message oups.com... Is there any way that I can change the context menu of a cell in Excel ? Thanks for all your help. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Add items to context menu | Excel Worksheet Functions | |||
Right-Click (Context Menu) | Excel Programming | |||
Context Menu | Excel Programming | |||
Context menu on userform | Excel Programming | |||
context menu | Excel Programming |