hilkoc / vbaDeveloper

Tools for development and version control of vba code
MIT License
516 stars 137 forks source link

Having several binaries binding to the same src #10

Closed mauriciojxs closed 7 years ago

mauriciojxs commented 9 years ago

Hello,

Nice work with the tool, it's really helping me.

I was wondering how (if) you deal with having more than one Excel binary (.xlsm) linked to the same src files? I'll explain my case. I have a couple of files that will be using the same libraries. I think of put them on the same root folder, and when I export/import the code, they would both point to the same subdirectory (that would be ./src/ instead of ./src/filename.xlsm/)

Thanks, Mauricio

hilkoc commented 7 years ago

The code can easily be modified to do as you suggest. However, this is not a recommended way for modules to share code. Eventually all the excel binaries will end up with duplicate copies of the same code. It's better to move the code to a separate (new) addin and let both excel books reference that addin.