Run the macro from Tools, Macros in the related application.
See How do I add, create, or run a macro in Sage Desktop in 16.1 or newer?
Error: "An error occurred. Close and then re-open Sage Desktop. See the log for details" (MASTER ARTICLE)