How to Edit a Macro in an Access 2016 Database
Question details
The user needs to edit a macro in an older Access database after moving to Access 2016 or Microsoft 365.

- Product
- Microsoft Access 2016 and Microsoft Access for Microsoft 365
- Device & OS
- not provided
- Scenario
- A database created in Office 2007 contains a macro that the user wants to modify in a newer version of Access.
- Observed behavior
- The macro may run, but its editing option is unavailable.
Check the database file extension and whether the macro is a separate object in the Navigation Pane or embedded in a form or report. Open the database in the full version of Access, not Access Runtime, which does not provide normal design tools.
Open the Access macro in Design View
Use Design View to edit a standalone macro, or open the event property for an embedded macro.
Open the database in Access and press F11 to show the Navigation Pane. Look for the macro under the database objects.
Right-click the macro, such as Macro1, and select Design View. Edit its actions in Macro Builder, then press Ctrl+S to save.
If the macro is attached to a form or report, right-click that object in the Navigation Pane and choose Design View. Open the Property Sheet, select the Event tab, and click the build button next to the relevant event to open its embedded macro.
If the automation is VBA code rather than an Access macro, press Alt+F11 to open the Visual Basic Editor and locate the relevant module or event procedure.

Check the database format and security settings
Use these checks when Design View is unavailable or Access blocks database content.
Use WPS Office for Documents and Spreadsheets
WPS Office is a free, lightweight alternative with a familiar interface for working with common Office documents. It supports seamless migration of everyday files, but it does not edit Microsoft Access databases or Access macros.

Frequently Asked Questions
Why can I run an Access macro but not edit it?
The macro may be embedded in a form or report, or you may be using Access Runtime or a compiled database that restricts design changes. Check the object in the Navigation Pane and confirm the file format.
Does an Access database have to be an .accdb file to edit a macro?
No. Access can edit macros in supported .mdb databases as well as .accdb databases. Conversion may help with an older database, but it is not always required.
How do I open the VBA editor in Access?
Press Alt+F11 in Access to open the Visual Basic Editor. Use it for VBA modules and procedures; use Macro Builder to edit Access macros.
Can I edit an embedded macro in an .accde file?
An .accde restricts changes to form and report designs. Ask the database creator for the original .accdb, then open the relevant object in Design View and inspect its Event properties.
Should I enable content when Access displays a security warning?
Select Enable Content only if you trust the database and its source. Enabling content may allow blocked macros to run, but it will not necessarily make them editable.




