Do you mean the macro I posted above works now (or are you speaking of some “recorded” macro)?
Almost smells like one of those permission issues. Have you seen this post:
TIP: Resolving Catalina (and Mojave) Accessibility and Security Permissions Issues
Make sure to follow the tips there, if such problems re-occur.