Hi;
I have an excel workbook that calls a sub located in another workbook. I use:
Application.Run "C:/ExcelFile.xls!subname", argument1
For some reason whenever I execute this code it gives me a run-time error 1004 ( the macro 'C:/ExcelFile.xls!subname' ) cannot be found.
I verified the path and the filename and the sub they all exist. I thought that the sub was in a form and I know that you cannot call procedures in a form, but it's not, it is in a module. I have no clue why VB couldn't find it? The spelling and the path are correct.
Any help or insight would be much apreciated.
I have an excel workbook that calls a sub located in another workbook. I use:
Application.Run "C:/ExcelFile.xls!subname", argument1
For some reason whenever I execute this code it gives me a run-time error 1004 ( the macro 'C:/ExcelFile.xls!subname' ) cannot be found.
I verified the path and the filename and the sub they all exist. I thought that the sub was in a form and I know that you cannot call procedures in a form, but it's not, it is in a module. I have no clue why VB couldn't find it? The spelling and the path are correct.
Any help or insight would be much apreciated.