AnsweredAssumed Answered

Type Mismatch Error

Question asked by Scott Perman on Mar 11, 2020
Latest reply on Mar 11, 2020 by Scott Perman

I'm just dipping my toes into the world of API/Macros.  There is an example on the solidworks web site that I think I can modify for my needs, but I cannot get it to run.  

 

Here is the link to the macro:

2019 SOLIDWORKS API Help - Change Active Tab in Manager Pane Example (VBA) 

 

I think I've followed the instructions properly, but when I try and run it I get a 

 

 

on this line:

 

Set swAssembly = swModel

 

Reading other threads, I may not have my references setup properly, but I'm not sure what I am missing.  

 

 

Any help would be appreciated.  

Outcomes