VBA & Macro Problems

Replace the Cut Command in an Access MDB-to-ACCDB Macro

Chanuka GeekiyanageChanuka Geekiyanage Nov 14, 2026 868 views

Question details

Replace a Cut command that is not recognized in an Access macro after converting an MDB database to ACCDB.

Product
Microsoft Access
Device & OS
not provided
Scenario
An MDB database containing a macro is converted to ACCDB, and the macro needs to cut the selected content.
Observed behavior
The converted macro may not recognize the original Cut command, although Cut can still be run through a menu command action.
Before you start

Open the converted ACCDB database in Access and locate the macro that contains the Cut command. Make sure the macro will run when an editable control or other valid target has focus.

Solution 1Recommended

Replace Cut with the RunMenuCommand macro action

Use RunMenuCommand to execute Cut in the converted Access macro, and enable trusted content if necessary.

1
Open the macro in Design View

In the Navigation Pane, right-click the affected macro and select Design View.

2
Show all macro actions

On the macro designer's Design tab, select Show All Actions so RunMenuCommand is available.

3
Add the menu command

Replace the unrecognized Cut action with RunMenuCommand, then set its Command argument to Cut.

4
Trust the database if needed

If Access displays a security warning for a database you trust, select Enable Content. Alternatively, use File > Options > Trust Center > Trust Center Settings > Trusted Locations to add a trusted folder.

5
Save and test

Save the macro, select content in an editable control, and run the macro to check that Cut works.

Cut requires a valid target: The Cut command may be unavailable if the active control is not editable or there is no content to cut. Only trust databases and locations from sources you know.
Free Microsoft Office alternative

Work with Office documents in WPS Office

WPS Office is a free, lightweight alternative with a familiar interface for working with Office documents and moving between common file formats. It does not fix Access macros or replace an Access database application.

Edit spreadsheets related to your database workflowWork with Microsoft Office DOCX, XLSX, and PPTX filesUse a familiar interface for documents, spreadsheets, and presentationsMove common Office files into a lightweight suite
microsoft office alternative - wps office

Frequently Asked Questions

Where is Show All Actions in Access?

Open the macro in Design View and select Show All Actions on the macro designer's Design tab.

How do I run Cut from an Access macro?

Add the RunMenuCommand action in the macro designer and set its Command argument to Cut. Run it when an appropriate editable target has focus.

Why does Access block the macro after conversion?

Access may restrict macro actions when the database is not trusted. If you trust the file, select Enable Content on the security warning or place it in a trusted location configured through the Trust Center.

Can WPS Office fix the Access macro or open the database application?

No. Edit and test the macro in Microsoft Access. WPS Office can work with common Office documents and spreadsheets, but it does not replace an MDB or ACCDB database application.