26. VBA Tips - Call Code From Another Workbook

In this VBA tip, we'll learn how to call code from another workbook:
- The way to do this is to use Application.Run
Here's the code:
To replicate:
- Open both the example workbooks
- Press the button.
- You will then see a message box saying that the other code is being run.
- The Syntax for Application.Run is: "WorkbookName.xls!MacroName"
- Using this tip, you can run all the macros from one workbook using another workbook.
Training Video on how to Call Code From Another Workbook in Excel:
| Attachment | Size |
|---|---|
| AnotherWorkbook.xls | 31 KB |
| call-code-from-another-workbook.xls | 49 KB |
»
- Nick's blog
- Add new comment
- 1954 reads

Recent comments
6 hours 59 min ago
7 hours 56 sec ago
8 hours 25 min ago
8 hours 36 min ago
8 hours 48 min ago
9 hours 4 min ago
17 hours 39 min ago
19 hours 35 min ago
1 day 12 hours ago
1 day 12 hours ago