Macro will not run after copy

I have a macro that runs perfectly and wanted to make a new version so I copied it. But running the renamed macro, produces the error Run-time error 424 object required, why is this happening?

EDIT: Just noticed that I deleted a field from the form but not the code behind it, would this be the culprit?

SolidworksApi macros
Answers 3
DG
DG 2011-10-04 Best Answer

There can be a possibility that form value must have been used some where, so you'll have to debug and clean it up.

Can you share the macro here to check??

WM
WM 2011-10-04

Most likely he code did something with the field you deleted. Run the macro in debug mode and it should stop on the line that is blowing up.

SF
SF 2011-10-05

I got it to work by exporting all the forms & modules to a new macro, which incidentally is much smaller in size.