ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   shortcut macro keys (https://www.excelbanter.com/excel-programming/294924-shortcut-macro-keys.html)

shasta[_6_]

shortcut macro keys
 
when u create a macro it gives u an option to have a shortcut key...i
it possible to have the return key as a shortcut

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


Frank Kabel

shortcut macro keys
 
Hi
AFAIK not possible with the build-in shortcut assignment

--
Regards
Frank Kabel
Frankfurt, Germany


when u create a macro it gives u an option to have a shortcut

key...is
it possible to have the return key as a shortcut?


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



shasta[_8_]

shortcut macro keys
 
than

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


JE McGimpsey

shortcut macro keys
 
One way:

Public Sub test()
Application.OnKey "{RETURN}", "MyReturnMacro"
End Sub

Public Sub MyReturnMacro()
MsgBox "You pressed Return"
End Sub

You can put the Application.OnKey call in your Personal.xls
Workbook_Open sub

In article ,
shasta wrote:

when u create a macro it gives u an option to have a shortcut key...is
it possible to have the return key as a shortcut?



All times are GMT +1. The time now is 04:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com