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!

Calling sub from another workbook 1

Status
Not open for further replies.

PavelGur

Programmer
Sep 21, 2001
75
Assuming I have a workbook Book1 and I coding marco that needs to call a sub from another workbook Book2. Both are open. What is the syntax to do it?
Thanks, Pavel.
 
Hi PavelGur,

You can use Application.Run (see help for syntax) or you can add a reference from Book1 to Book2 and call the sub like any other.

Enjoy,
Tony

--------------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.
Excel VBA Training and more Help at VBAExpress[
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top