I'm running VB from the built-in VB editor in SolidWorks. Using either of the "standard" methods does not work for me. I'm running SW 2015 SP 5.0 on Win 7.
Trying to catch this state with
If swApp is Nothing Then
MsgBox "No active SW instance"
But nothing happens.