How to protect some specific module in VBA project?

I

iop

As we know, we can protect the whole VBA project. but if i want to protect
one or two modules in a VBA project. How to do so?
thanks!
 
I

iop

there are some common functions and procedures in my module, and now, i want
to protect this module.
if i put them in another separate file, can i call the functions and
procedures easily and efficiently? i've no idea of this.
thanks!!
 
P

Peter T

You could set a reference to your other file (make it an addin) and call
procedures directly.

Otherwise you maybe able to use Application.Run for your needs. Note you
cannot pass objects, arguments are byVal. Functions can return values or an
array, but not an object. If need to handle objects, pass names or index's
with as much qualification as needs.

Regards,
Peter T
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top