Made recorded marco but cannot run

I make a recorded marco and try to ran it, but it pop up error message"error'91', no set up variable or with local variable". how can i do? But i checked the marco it created variable automatically. thanks!

SolidworksApi/macros