A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Good day PREM KUMAR,
Hope things are going smoothly for you. I understand this issue may be causing inconvenience, and I appreciate your patience.
Please try the following:
- Make sure the workbook is saved as an Excel Macro-Enabled Workbook (.xlsm) or Excel Binary Workbook (.xlsb). If it was saved as an .xlsx file, the macro may have been removed.
- Close Excel, right-click the file, select Properties, and check Unblock if this option is available. Then click Apply > OK and reopen the file.
- When opening the workbook, select Enable Content if a security warning appears.
- Go to File > Options > Trust Center > Trust Center Settings > ActiveX Settings, and select Prompt me before enabling all controls with minimal restrictions. The button may be an ActiveX control, which is managed separately from VBA macro settings.
- Open the Developer tab and ensure that Design Mode is turned off.
- Press Alt + F8 and try running the validation macro directly.
For more information, please refer to the following link:
- Enable or disable macros in Microsoft 365 files
- Add, remove, or change a trusted location in Microsoft Office
- Enable or disable ActiveX settings in Office files
- ActiveX controls are disabled by default in Microsoft 365 and Office 2024
You can also press Alt + F8 and try running the validation macro directly. If it works from the Macro window but not from the button, the issue is likely with the button assignment or ActiveX control. If the macro also fails there, press Alt + F11, run it again, and note any error message or highlighted code.
If the macro runs through Alt + F8 but the button still does not work, the button may no longer be linked to the correct macro. Please right-click the button and check Assign Macro or View Code, depending on the type of button.
If this is a company-managed computer, your organization’s security policy may override the Trust Center settings. In that case, please contact your IT administrator.
Wishing you a quick resolution. Feel free to let me know if there are any updates.
Best regards,