Jaymond Flurrie
Well-known Member
- Joined
- Sep 22, 2008
- Messages
- 921
- Office Version
- 365
- Platform
- Windows
I have a workbook LF-9.xlsm and I have "Public Sub RunLogic" there. How do I run it from another open workbook? I tried
Application.Run ("LF-9.xlsm!RunLogic")
but it says "Run-time error '1004': Cannot run the macro 'LF-9.xlsm!RunLogic'. The macro may not be available in this workbook or all macros may be disabled"
I tried to run it directly from the mdlSolverPart -module in that LF-9.xlsm workbook, and it has no problems at all. Running "internal" code in the calling workbook, UI-12.xlsm works without problems as well.
I'm using Excel2010.
Application.Run ("LF-9.xlsm!RunLogic")
but it says "Run-time error '1004': Cannot run the macro 'LF-9.xlsm!RunLogic'. The macro may not be available in this workbook or all macros may be disabled"
I tried to run it directly from the mdlSolverPart -module in that LF-9.xlsm workbook, and it has no problems at all. Running "internal" code in the calling workbook, UI-12.xlsm works without problems as well.
I'm using Excel2010.