Create Auto Keys with VBA??

EternalMyrtle

I'm still alive
Local time
Yesterday, 23:43
Joined
May 10, 2013
Messages
533
Hello,

I am currently using a Macro to assign auto keys. However, since my users are using Runtime, I am finding the program crashes when one attempts to use an auto key when it cannot be used.

I have tried to solve this by using the OnError action to make the macro fail and abort but it is not working.

Is there a way to create auto keys with vba code so that I can insert an error handler in there?

Thank you!
 
In your autokeys macro use "RunCode". The VBA code you use will need to be a public function in a public module
 
Thanks for your reply. I should have been more specific: how do I write the code to assign auto keys?
 
I believe that has to be done through the macro not code.
 
I was not able to set autokeys in code, only with macros

I tried to find a way to let users manage some of their own autokey short cuts, but failed.
 

Users who are viewing this thread

Back
Top Bottom