on press

F

Fraggs

Is it possible to create a macro so that when the enter button i
pressed, the workbook is either saved, or saved then closed
 
E

Earl Kiosterud

Fraggs,

You can trap any key with OnKey

Application.OnKey "~", "EnterProc"

Now whenever Enter is pressed, it runs EnterProc

Sub EnterProc()
MsgBox "Hello, dere. This is EnterProc"
End Sub

You sure you want to use the Enter key for this???
 

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

Top