Thread: on press
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Earl Kiosterud[_3_] Earl Kiosterud[_3_] is offline
external usenet poster
 
Posts: 57
Default on press

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???
--
Earl Kiosterud
mvpearl omitthisword at verizon period net
-------------------------------------------

"Fraggs " wrote in message
...
Is it possible to create a macro so that when the enter button is
pressed, the workbook is either saved, or saved then closed?


---
Message posted from http://www.ExcelForum.com/