Invoke a macro with the Enter key

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

Guest

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.
 
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.
 

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