Leslie Vail digs into Dynamics GP macros with Speed up your Macros.
Dynamics Confessions Blogspot: Speed up your Macros
Development & IntegrationMicrosoft & the GP Ecosystem
Archived post from 2014. Dynamics GP and the links it points to have changed since; check current documentation before relying on version-specific steps.