Free Vbscript Keyboard Macro Template!

A macro is a powerful tool used to automate your keyboard for repetitive tasks. Most people don't know that Windows already has a program that does this. Everything you need to write quick and easy macros is included in this file.

This simple macro script was created in VBScript. There are several benefits to using this kind of macro solution:
  • The macros are plain text and can be edited by anyone.

  • The macros use the Windows Scripting Host. They can be run on any Windows computer without installing anything extra.

  • The macro uses plain English commands.

  • Instructions are built into the script. Just open in a text editor and you can get to work.

  • Alternatively, you can use this website as a guide to using this Macro Template.

Macro Instructions:

  1. Unzip the folder containing the VBSCript macro template file. It will be named macro.vbs

  2. Copy the file to a new location. Place it near whatever you a creating a macro for. The desktop is always a good location.

  3. Right click the macro template file and select edit. This opens the macro in Notepad.exe

  4. Scroll to the bottom of the file. You will see a section labeled "Your code goes after here" followed by some plus signs. Just remove the example macro code here and place your own code.

  5. The area just above the plus signs displays the available macro commands.

  6. Once you are done entering macro commands, you save the file and close it.

  7. To run the macro, there are three methods: Double click the macro, right click and pick command prompt, or right click and click run with then pick windows scripting host.

  8. To send the file via email you may need to change the extension to .txt. Email filters do not like VBS programs.

  9. Of course, these are just functions written in Visual Basic Script, so you can extend the template by adding your own new functions. If you write something useful for everyone, post a comment and I will give you credit inside the template file and add your website to the side bar.

If you have any suggestions for improving the macro template, just leave a comment. I will include your name and website in the changes.


  1. I don't see a link to download your macro template.

  2. eh,look on the right under DOWNLOADS !

  3. I got a few remarks.
    1. Isn't 'Qoute' normally written as 'Quote'?
    2. This script is not Windows 7 friendly. StartRun is not working.
    3. Run variable is not working. It will generate an error if used

    Furthermore I'd like to remark that this is a very stable, good working, finely worked out script. I used it on a machine that runs reports and has to be logged in with first (daily).
    I fully automated the process from start to end on a Windows XP machine. Works great.

    Just can't get it to work on a Windows 7.

    Weird stuff happens when I use StartRun on W7.
    Isn't it possible to call the RUN application with a script? I know in Windows 7 its callable via an exe or a command.