Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Invoke a macro with the Enter key

I would like to invoke a little macro that puts a time stamp in the cell on
the right, then moves down one cell. I know how to make the macro, I just
don't know how to attach it to the Enter key.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 400
Default Invoke a macro with the Enter key

Are you sure about assigning this macro to the Enter key?

It is simple:

application.OnKey "{~}", "Your Macro"
application.OnKey "{ENTER}", "Your Macro"

There are 2 enter keys. Check the help topic OnKey.

"Duncan Help" wrote:

I would like to invoke a little macro that puts a time stamp in the cell on
the right, then moves down one cell. I know how to make the macro, I just
don't know how to attach it to the Enter key.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default Invoke a macro with the Enter key

As an alternative, you may want to look at how JE McGimpsey does it based on a
cell changing:
http://www.mcgimpsey.com/excel/timestamp.html



Duncan Help wrote:

I would like to invoke a little macro that puts a time stamp in the cell on
the right, then moves down one cell. I know how to make the macro, I just
don't know how to attach it to the Enter key.


--

Dave Peterson
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
How to get userform Cancel button to invoke Exit Sub in calling macro? Craig Remillard New Users to Excel 1 November 19th 09 03:55 AM
HELP: Setting CNTL-SHIFT-F to invoke Excel2007 macro Jay Somerset Excel Discussion (Misc queries) 7 June 3rd 07 09:40 PM
add data to combo box in excel then invoke macro Richard Excel Worksheet Functions 1 December 11th 05 08:50 PM
Invoking Excel via Getobject(From Access) to invoke Excel Macro Acie[_2_] Excel Programming 1 February 27th 04 07:56 PM
invoke macro from outside excel - auto macros nongo Excel Programming 2 October 7th 03 02:28 PM


All times are GMT +1. The time now is 10:41 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"