Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have written a macro that automatically hides the sheet when Ctrl+a is
pressed. However I would like to know if it is possible to write a program that would allow me to use Esc instead of Ctrl+a. Thanks Dajana |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You can use application.onkey to reassign that key. But remember, it won't do
anything while you're editting a cell. Option Explicit Sub testme01A() Application.OnKey "{Escape}", "Testme01B" End Sub Sub testme01B() MsgBox "you hit escape" End Sub Sub testme01C() Application.OnKey "{Escape}" End Sub The top procedure turns it on and the bottom turns it back to normal. Dajana wrote: I have written a macro that automatically hides the sheet when Ctrl+a is pressed. However I would like to know if it is possible to write a program that would allow me to use Esc instead of Ctrl+a. Thanks Dajana -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Ps. I don't think I'd do this. Escape is used for other things that are too
useful. Dajana wrote: I have written a macro that automatically hides the sheet when Ctrl+a is pressed. However I would like to know if it is possible to write a program that would allow me to use Esc instead of Ctrl+a. Thanks Dajana -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Editing a simple macro | Excel Worksheet Functions | |||
Can T Get Macro To Run! | New Users to Excel | |||
Closing File Error | Excel Discussion (Misc queries) | |||
Help with macro looping and color query function | Excel Discussion (Misc queries) | |||
Date macro | Excel Discussion (Misc queries) |