Others

How to Edit a Macro in an Access 2016 Database

Kushani NimanthikaKushani Nimanthika Nov 20, 2026 870 views

Question details

The user needs to edit a macro in an older Access database after moving to Access 2016 or Microsoft 365.

How to Edit a Macro in an Access 2016 Database
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.
Before you start

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.

Solution 1Recommended

Open the Access macro in Design View

Use Design View to edit a standalone macro, or open the event property for an embedded macro.

1
Find the macro

Open the database in Access and press F11 to show the Navigation Pane. Look for the macro under the database objects.

2
Open Design View

Right-click the macro, such as Macro1, and select Design View. Edit its actions in Macro Builder, then press Ctrl+S to save.

3
Check for an embedded macro

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.

4
Inspect VBA if applicable

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.

Open the Access macro in Design View
Macros and VBA are different: Access macros are edited in Macro Builder. The Visual Basic Editor is for VBA code and does not replace Macro Builder.
Free Microsoft Office alternative

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.

Work with documents and spreadsheets alongside your Access database projectsOpen and edit common Microsoft Word, Excel, and PowerPoint formatsUse a familiar interface for an easier transition from Microsoft OfficeInstall a free, lightweight office suite for everyday tasks
microsoft office alternative - wps office

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.