Porting VBA Libraries

M

MWE

I have a library of VBA procedures in my Personal.xls file consisting o
a half dozen or so Modules, each containing 10 to 50 individua
procedures. When developing a new application, this library i
referenced. But once the application is “done” and if I wish to mov
it to another machine, I need a way to move the necessary procedure
from the library as well.

My present method uses an application I wrote that interrogates th
application, builds a list of procedures called, interrogates thos
procedures, etc. When that process is done, a Module is built of al
library procedures and added to the Application. It works and onl
“adds” the required procedures; but is rather “brute force”.

Is there a better way to do this? Is there some simpler way to do thi
and keep the library “secure”? I have no particular preferenc
regarding how much is moved, i.e., the entire library or just th
“necessary” procedures. The latter seems a bit more efficient.

Thank
 
C

Chip Pearson

You might find it useful and more efficient to simply cut/paste
the required procedures from your personal.xls VBProject in to
the application project as soon as you find that you need a
specific procedure.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 
Top