PDA

View Full Version : From AutoHotkey to VBA - text shortcuts



eiol
05-09-2015, 04:24 AM
Is there any solution to this problem:

At my work there are some users, that have installed AutoHotkey and have used a lot of time to build a list of short cuts to write text in Word.
However the company will not allow the users to install AHK in the new computers. Is there a way to put those scripts in to Visual Basic?
It need to work like this:

If I write the “shortcut” hhay in Word the script will complete the text with the text I have wrote in the script: hi how are you
Is this possible? Is there any solution to this problem:


Thanks in advance

gmaxey
05-09-2015, 07:46 PM
No, but Word's AutoCorrect feature could be used for this purpose in most cases. Typically AutoCorrect is used to automatically correct typos e.g., wheere is autocorrect as you type to where.

If you define hhay as an autocorrect entry with the correction being hi how are you then it would work sort of like AHK.

eiol
05-10-2015, 02:20 AM
Thanks.

Eiol