AnsweredAssumed Answered

VBA: Reference one project to another

Question asked by Rob Edwards on Oct 25, 2019
Latest reply on Oct 25, 2019 by Rob Edwards

Hi guys

 

I'm pretty sure I managed to do this a couple of years ago when I was just messing around, but for the life of me I can't get it to work this morning.

 

I'm following the steps described here

How to use a class (object) from outside of the VBA project - Office | Microsoft Docs 

 

briefly

  • set class instancing to Public Not Creatable
  • provide a method in a standard module to create new instances
  • Save the File

 

The other project appears in the References List but when I try and add it I just get a generic error message

 

 

I've tried following along from several other examples on the net but nothing specifically Solidworks related - you can imagine the search results from the terms Solidworks VBA Project References etc...

 

Thanks for looking.

Outcomes