• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 11. What Are Macros and When Do ... > Creating an AutoKeys Macro

Creating an AutoKeys Macro

An AutoKeys macro allows you to redefine keystrokes within your database. You can map selected keystrokes to a single command or to a series of commands. Follow these six steps to build an AutoKeys macro:

1.
Open a new macro in Design view.

2.
Make sure the Macro Name column is visible.

3.
Enter a key name in the Macro Name column. Allowable key names are defined in Access Help and can be seen in Figure 11.23.

Figure 11.23. A list of valid key names for the AutoKey macro.


4.
Select the macro action you want to associate with the key name. You can apply conditions and arguments just as you do for a normal macro. You can have Access execute multiple commands in one of three ways: Associate multiple macro actions with a key name, perform a RunCode action, or perform a RunMacro action.

5.
Continue adding key names and macro actions to the macro as desired. Separate each key name by one blank line to improve readability.

6.
Save the macro as AutoKeys. The moment you save the macro, the key names are in effect, and the keystrokes will be remapped. The AutoKeys macro comes into effect automatically each time you open the database.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint