Leslie Vail examines Posting multiple batches with a macro
Dynamics Confessor Blogspot: Posting multiple batches with a macro
General Ledger & FinancialsDevelopment & IntegrationMicrosoft & the GP Ecosystem
Archived post from 2013. Dynamics GP and the links it points to have changed since; check current documentation before relying on version-specific steps.