# How to Create Autoexec Macro MS Access

> To set up an automatic startup sequence, go to the Create tab, select Macro, and choose your desired actions in the macro design window. Configure the action properties, save the macro with the mandatory name AutoExec, and then close, reopen, and run the database to execute it automatically.

Canonical: https://livedemo.ai/tutorials/how-to-create-autoexec-macro-ms-access/
Updated: 2026-10-05
Interactive demo: https://story-api.livedemo.ai/workspaces/62255d3d3304f17b8f5e2d03/stories/692a391aab56e05a00fdf5a2/preview?step=1

## Steps

1. Go to the 'Create' tab in the ribbon.
2. Click on 'Macro' in the 'Macros & Code' group.
3. In the macro design window, choose the actions you want the macro to perform. Use the drop-down in the 'Action' column to select actions like
4. Configure each action's properties.
5. Click the save icon to proceed.
6. Name the macro 'AutoExec', this name is mandatory for it to run automatically. Click 'OK' to save.
7. Close and reopen the database. Click 'Run'.
8. The AutoExec macro will run automatically.
