Disfunctional Macro - Need help

I need some help.

I have a macro that when I step thru it step-by-step is works perfectly.  When I try and run it from a command button in SolidWorks it does nothing.  What am I missing?

Any help or suggestions is appreciated.

SolidworksApi macros