custom right click menu

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is is possible to customize the right click menu in Excel or any other office
application?
 
Yes, here is some example code

Sub addmenu()
Set nbar = Application.CommandBars("Cell")
Set ntrnew = nbar.Controls.Add

ntrnew.Caption = "Right Click"
ntrnew.Visible = True
ntrnew.BeginGroup = True
ntrnew.FaceId = 110
ntrnew.OnAction = "Proceduretobeexecuted"

Set nbar = Nothing
Set ntrnew = Nothing
End Sub

http://HelpExcel.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top