Sharing VBA code among several databases

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have written several VBA modules that I would like to share among several
Access databases. Is there any way to do this without the obvious Copy &
Paste from one db to another? I am hoping to store them all in a single
place so that when they get changed, I don't have to remember to Copy & Paste
into x number of db's.

Thanks in advance to anyone who replies.

Brian
 
Brian said:
I have written several VBA modules that I would like to share among several
Access databases. Is there any way to do this without the obvious Copy &
Paste from one db to another? I am hoping to store them all in a single
place so that when they get changed, I don't have to remember to Copy & Paste
into x number of db's.


You can put all those general procedures in modules in their
own mdb file. Then the other database files can use that as
a library by setting a reference to it.

You set a reference from the VBA window using the Tools -
References menu item/
 

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

Back
Top