Want to delete a button on a macro form, it breaks macro

I am a self admitted hack when it comes to macros.  I am in the process of merging elements of a few samples together to get what I need.  My donor macro has some buttons on a form that I no longer need.  When I delete the button and attempt to run the macro, it errors out on the Formxxx.show line of code.

This has to be a basic thing... how do you delete a button on a form.  There must me another step.

SolidworksApi macros