SolidWorks Macro 2008 to 2015

Hello everyone,

I created a Macro on SolidWorks 2008 with Visual Basic and I tried to put my macro on a workstation where there is SolidWorks 2015.

The problem is that when I launch my macro on the 2015 after updating my document entries it tells me that:

"Compilation error: Project or library not found" by highlighting me at the beginning of the "swApp"  macro (without the gillemets)

If anyone knows how to unlock this I'm all ears

Thanks in advance

Sincere greetings

I'm not sure but look at your macro 

I think there has been a change

and when you find an IF, replace it with IFF

Take the test and you'll give news

@+

It immediately puts me other errors and puts the IFF in red

He doesn't care about my macro on the 2015, I don't know if he uses another vocabulary, I'd be surprised

Hello Have you simply checked in the references that the libraries used are indeed sw2015? In tools> references you should at least have sw2015 type library, sw2015 commands type library and sw2015 constant type library
2 Likes

In addition, something to check each time you change the version of Solidworks.

To date, no previous function calls have been removed from one version to the next.