I am writing a macro in VBA thru Excel. I am basically controlling SW with Excel VBA and looping thru solidworks files. After about 1000 files SolidWorks crashes.
What is the best code to close the active SolidWorks session and restart a new one so the code can continue on?
I have tried a few different things and nothing is working. It fails to see/use the new session that was started.
Thanks in advance. Eric