macro does not start executing from sub main()

Hi,

     I am using a macro which includes several procedures (e.g sub main(), sub UpdatePart(), sub UpdateAssly()).

    All other procedures are called in sub main () only.

   When i run the macro from play button given in macro toolbar, macro starts executing from UpdateAssly(), & not from sub main ().

    Why is it so? What is the solution?

SolidworksApi macros