Somebody know about this error in the code? I don't know what to do.
Solidworks 2013 SP5.
I suspect that your swModel variable is empty.
Before the Do loop, use a block similar to this:
If swModel Is Nothing Then
MsgBox "No Active document."
We already found the bug in the other topic Juan opened
Macro: Property Manager - Run-time error '91'
Retrieving data ...