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 / Programming / May 2006

Tip: Looking for answers? Try searching our database.

Adding items to a right click menu

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kezza - 21 May 2006 02:22 GMT
Hello all, is it possible to add "insert time" and "insert date" to the
right click popup menu? I am trying to get away from keyboard
shortcuts.
TIA
Kezza
Norman Jones - 21 May 2006 05:23 GMT
Hi Kezza,

> Hello all, is it possible to add "insert time" and "insert date" to the
> right click popup menu? I am trying to get away from keyboard
> shortcuts.

Ron de Bruin has sample code for adding (or removing) commands to the
right-click menu at:

       http://www.rondebruin.com/menuid.htm#Add

See particularly Ron's Add_Controls procedure on that page.

In your case, the macros to be added to the menu might be:

'=============>>
Public Sub InsertDate()
   Selection.Value = Date
End Sub

'----------------->

Public Sub InsertTime()
   Selection.Value = Time
End Sub
'<<=============

---
Regards,
Norman
Kezza - 21 May 2006 06:15 GMT
Thanks heaps for your help.
Kind Regards
Kezza
Stefano Gatto - 21 May 2006 09:53 GMT
Maybe this helps: Ctrl-: and Ctrl-; are keyboard shortcuts inserting time and
date resp in Excel.
Signature

Stefano Gatto

> Thanks heaps for your help.
> Kind Regards
> Kezza
 
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.