Macro Almost Works Needs Help with Reference

I have a macro for imporitng 3D coordinates from a .txt into an active blank part. After a couple hours of figuring out why I was getting "Comiler Error: Can't find project or library", I've learned that it's an outdated reference issue. I've attached the macro, and need some help fixing the reference. The MISSING: reference is SolidWorks 2007 Commands type library. I can't find the equivalent 2010 version in the list of references. Any help would be appreciated. Thanks.

SolidworksApi macros
Answers 2
DG
DG 2011-09-19 Best Answer

Can open your macro since I don't have SolidWorks on this machine but did you checked the complete list of the libraries?

In case you can't find them, simply start a new macro and copy paste all the codes to new macro. Save and Run.

SF
SF 2011-09-19

Deepak,

Let me see if that works. Are you telling me that the references are selected automatically when you save and run? References are not something that user has to select when making a macro? (sorry if that sounds stupid, but I'm no VBA expert).

On another note, there are a couple of these macros floating around the web.

1. Excel GUI VBA macro that links with Solidworks

and

2. SolidWorks VBA macro

The issues that I was talking about refers to (2). I will try your technique to fix it. I was able to fix (1) by simply unchecking the missing reference and saving. I didn't even try to relocate it. For (2) I was able to get it to run through successfully, but it doesn't plot the 3D coordinates...it just finishes and says zero points plotted. Perhaps the issue is not the reference, but rather an inherent bug in the program. If your technique doesn't work, don't worry about it because (1) works for me.