How to Fix VBA Save Button Not Working in Excel Forms
Question details
The user's VBA Save button in an Excel form fails to execute its intended macro, which is designed to copy the form, save it based on the filename in cell E2, clear fields, and prepare the next entry.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Using an automated VBA macro button to save completed data forms to a new workbook and reset the current template for the next user entry.
- Observed behavior
- The macro does not run when the Save button is clicked, preventing the form from being saved, cleared, or assigned a new number.
Ensure you have saved a backup copy of your Excel workbook before modifying VBA code, updating cell references, or changing macro security settings.
Enable Macros and Check Trust Center Settings
Macros must be explicitly enabled in Excel for VBA code, including your Save button, to execute properly.
By default, Excel often blocks macros from running to protect against malicious code. If macros are disabled, clicking your Save button will have no effect or will prompt a security warning.
Click on 'File' > 'Options' > 'Trust Center', and then click the 'Trust Center Settings' button.
Select 'Macro Settings' from the left pane and choose 'Enable VBA macros (not recommended; potentially dangerous code can run)' for testing purposes.
Click 'OK' to save the settings, close the workbook, and reopen it to ensure the macro permissions are applied.

Verify the Button's Macro Assignment
The Save button might be unlinked from the macro or pointing to a procedure in a different, closed workbook.
Validate VBA Code and the Cell E2 Reference
Ensure the VBA code accurately references the destination folder and that the filename value in cell E2 is valid.
Create and Run VBA Macros Seamlessly in WPS Office
WPS Spreadsheet natively supports VBA macros in its professional version, allowing you to automate tasks like saving forms, clearing fields, and generating new form numbers with ease.
- 1. Open Your Macro-Enabled File: Launch WPS Spreadsheet and open your .xlsm or .xlsb workbook.
- 2. Access the Developer Tab: Navigate to the 'Developer' tab on the top ribbon to access macro tools.
- 3. Manage and Edit Macros: Click 'Macros' to run existing scripts, or select 'Visual Basic Editor' to view and modify your VBA code.
- 4. Assign Macros to Buttons: Insert a shape or form control, right-click it, select 'Assign Macro', and choose your script to create a functioning Save button.

Frequently Asked Questions
Why does my VBA macro button work on my computer but not for other users?
Other users may have their macro security settings configured to disable all macros without notification. They need to either enable macros in their Trust Center or place the Excel file in a designated Trusted Location on their computer.
Can invalid characters in cell E2 cause the Save macro to fail?
Yes, if your VBA script pulls the filename from cell E2, any restricted system characters (such as slashes, asterisks, or question marks) will cause a runtime error during the 'SaveAs' command, preventing the macro from finishing.
How do I share a macro-enabled workbook so multiple people can use the Save form?
You can host the file on a shared network drive or use cloud services like OneDrive. However, users must download or open the file in the desktop application, as Excel for the Web does not support running VBA macros.
Why did my Save button turn into a picture that can't be clicked?
This happens if the workbook was saved in a format that strips out active content (like .xlsx instead of .xlsm) or if the macro object became corrupted. You will need to re-insert a Form Control button and reassign the macro to it.




