Easy switch between DLL and VBA Addin reference type #115
Replies: 2 comments
-
Very cool @dornech - thanks for sharing. BTW, did you know that with the DLL you can instantiate both ways - using the "New" keyword and using the Class Factory? I designed it that way to allow you to copy/paste code from the VBA Add-in to use with the DLL without modification. Of course that only solves the problem of using Class Factory with the DLL , and not the problem of code using "New" with the Add-in, like is solved with your code above. Below is a snapshot of the DLL object model showing the Class Factory class. Anyway, glad you are using the DLL - was wondering whether it was being used... |
Beta Was this translation helpful? Give feedback.
-
Obviously i did not know :-) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I thought it might be beneficial to be able to switch between DLL and VBA AddIn type. Without having to replace the calls all the time to the ClassFactory back and forth. I developed a instantion wrapper which is switched via VBA compiler directives. Have fun.
Beta Was this translation helpful? Give feedback.
All reactions