Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / April 2005

Tip: Looking for answers? Try searching our database.

Right click menu

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Darren - 26 Apr 2005 14:17 GMT
Hi,

is it possible to customise the right click menu, ie add or move items?

Darren
Bob Phillips - 26 Apr 2005 15:28 GMT
Public Sub addCellMenu()
   removeCellMenu       'just in case
   With Application.CommandBars("Cell")
       .Controls.Add(Type:=msoControlButton).Caption = "Routine1"
       .Controls.Add(Type:=msoControlButton).Caption = "Routine2"
       .Controls("Routine1").BeginGroup = True
       .Controls("Routine1").OnAction = "Another"
       .Controls("Routine2").OnAction = "YetMore"
   End With
End Sub

Public Sub removeCellMenu()
   On Error Resume Next
   With Application.CommandBars("Cell")
       .Controls("Routine1").Delete
       .Controls("Routine2").Delete
   End With
   On Error GoTo 0
End Sub

Signature

HTH

Bob Phillips

> Hi,
>
> is it possible to customise the right click menu, ie add or move items?
>
> Darren
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.