I found this macro floating around the interweb a few years ago, and its served us very well.
Basically, it allows you to toggle show/hide sketches, planes, etc... within a part or assembly. It's great for managing entities within large/deep assemblies.
However, we recently upgraded from SolidWorks 2015 to 2017 and we've noticed that the macro now errors out for some reason.
I tried troubleshooting it with the debug, but it goes beyond my limited programming knowledge.
I've attached the macro. Can anyone explain how to fix it so it works with SW2017?