Form not working

Hi,

I require assistance with the attached macro. The form gives the user an option to chose if he wants to cut the left or right side of the part.The form works fine if the line

( 'If strOpt = "No" Then)  is commented out.However if you remove the ' and add another end if at the bottom then the macro does not work.

Thank you

SolidworksApi macros