Error while trying to execute macro in Word document

Hey,
Could anybody please help me to fix the issue in macro.
When i tried to run a macro via UiPath locally it is working but when i tried to run it in the test server it is showing the below error.


The macro code is to replace some texts in the wrod document

Regards
Sreejith S S

Hi @sreejith.ss ,

Check this points

Differences in the software versions between your local environment and the test server: If you developed the macro on your local environment and it uses a feature or method that is not available on the test server’s software version, it could cause this error.

Security settings: Macros may be blocked from running on the test server due to security settings. Check with your IT team to ensure that macros are enabled and that any necessary security settings are configured.

Missing references: The macro may reference other libraries or components that are not available on the test server. Check to make sure that all necessary dependencies are installed and configured correctly

Thanks,