David Musgrave has a nice post up at Developing for Dynamics GP on why VBA’s Shift+F11 doesn’t always work in Dynamics GP and what to do about.
Why Does VBA’s Shift+F11 Not Always Work?
Archived post from 2009. Dynamics GP and the links it points to have changed since; check current documentation before relying on version-specific steps.