This macro has just stopped working out of the blue. Can anyone please help me to get this working again?
We use this countless times a day.
Using Solidworks Professional SP4
You need to change
Set swApp = CreateObject("SldWorks.Application")
Set swApp = Application.SldWorks
in the lines below:
This should make it work, but you have some issues with your type libraries registration. You might need to repair SOLIDWORKS to re-register type libraries.
It's working fine on my SW
Are you using SW2019?
Make sure you set all the references correct
Thanks John, Yes .. we are using Solidworks 2019. Doing a Solidworks repair has fixed the issue.
I appreciate your response.
Thanks very much. The Solidworks repair did the trick.
I appreciate your help!
Retrieving data ...