AnsweredAssumed Answered

understanding VBA  dim and set

Question asked by David Watkins on Dec 8, 2017
Latest reply on Dec 11, 2017 by David Watkins

I have pieced together meany things in VBA over the years but something I never understand is how Dim and Set work and what there really doing. I think I get it some times but I don't really understand what I have below. I just know it works. Could someone help explain this to me?

 

    Dim swApp    As SldWorks.SldWorks

    Dim swModel  As SldWorks.ModelDoc2

 

    Set swApp = Application.SldWorks

    Set swModel = swApp.ActiveDoc

 

Thanks for any help with this.

David

Outcomes