Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add items to context menu Fred Jacobowitz Excel Worksheet Functions 1 April 22nd 06 10:29 PM
Right-Click (Context Menu) Kryptonix Excel Programming 6 October 25th 05 03:59 PM
Context Menu nrussell Excel Programming 0 September 29th 05 10:08 AM
Context menu on userform Matthew Excel Programming 3 May 26th 05 02:32 AM
context menu eric23 Excel Programming 3 May 9th 04 11:49 PM


All times are GMT +1. The time now is 12:08 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"