gravanoc
Active Member
- Joined
- Oct 20, 2015
- Messages
- 351
- Office Version
- 365
- Platform
- Windows
- Mobile
I want to run a macro in my Personal Macro Workbook from another workbook. I have not been successful.
I believe that this is the required syntax:
And the sub being called...
Additionally, I've tried using the exact path to the file, but no luck.
Thanks!
I believe that this is the required syntax:
VBA Code:
Sub Caller()
Dim rngA As Range
Set rngA = Selection
' The next line works when calling a macro in a workbook other than Personal.xlsb.
Application.Run "'Exporter v2.xlsm'!PrintAddress", rngA
' The next line fails. Why?
Application.Run "'PERSONAL.XLSB'!PrintAddress", rngA
End Sub
And the sub being called...
VBA Code:
Public Sub PrintAddress(ByVal Target As Range)
Debug.Print(Target.Address)
End Sub
Additionally, I've tried using the exact path to the file, but no luck.
Thanks!