Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

run Macro from different Database file?

Status
Not open for further replies.

mygmat123

Technical User
Jun 28, 2004
56
US
How can I run a macro from VB that is in another database file that I have.

example:

I have two databases. DBfile1 and dbfile2

I would like to open dbfile1 run code that executes a macro in dbfile2.

Is this possible?

Thank you
 
You can't run a macro from a second database but you can run code from the second database by setting a referrence to it in the first.
 
thanks, I found a way to using SHELL()

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top