Macro execution on current PC within multi-user project

Macro execution on current PC within multi-user project

Hey,
I need to execute a VSTA-Macro linked to a button. That Macro calls a Windows Form Dialog updating user data. The project is running on a Primary/Standby Server and the Clients are synchronized to that server.
How do I manage it that only connected Clients can execute that button (Macro function)?
Currently, all synchronized computers are executing that Macro, whereas only the Macro-caller (HMI client) should do that work.
Thanks in advance
chris

This is a migrated post! Originally posted on 22.04.2016 by user ismael. Please be aware that information can be outdated.