Serious error occured on open macro file

While trying to debug a macro that exports all BOMs in a multiple sheet drawing file to excel, SW crashed and would not let me re-open the macro.  I get the error "A serious error occured on open macro file. The system could be in an unstable state now."

Does anyone know how to open the macro?

Thanks in advance! 

SolidworksApi macros
Answers 4
RG
RG 2014-07-11 Best Answer

Using SW 2014 Service Pack 2

SF
SF 2014-07-11

works at my set up sw 2012 sp1 exceel 2003

Also i believe you would have less problems if you clean up you code,

it just looks like a mess, easier for small typo

MM
MM 2014-07-11

I had the same problem this past week with one of my macros.

What I found out in trying to recover my work is that is a slightly common that sometimes occurs. One way some of us have found to get the macro back is to open it in an older version of SW. Then save and close it and retry with the current version.

I was lucky enough to have had 2013 still running on my home computer and was able to recover mine in this way. But, I am work right now and only have 2014 loaded so I can't do this for you now. Maybe someone else would be willing to open and repost it for you.

DG
DG 2014-07-11

I opened up the macro and saved in SW2013 but could not test it out. The attached file contains the saved macro, exported module and codes in a text file.