Go to File > Options > Trust Center > Macro Settings and select "Enable all macros" (though "Disable all macros with notification" is safer).
To fix the error you must upgrade to a premium version of WPS Office or manually install an external VBA environment package. Go to File > Options > Trust Center
If you have installed the component, but the macros still won't run, check if they are blocked by security settings. but the macros still won't run