chrisgarvey
Technical User
Hello.
I have a vb program that creates several reports by opening an excel file inserting the contence of a database and then sorting as required using an excel macro.
There are three difference macro's depending on the report required.
The program works if I only generate 1 report however if I try and run more than 1 macro from VB without closing and reopening the program the following error message apprears:
Run-time error '1004' Method 'run' of object' _application' failed. - this appears on the line of code in vb that runs the macro.
Any thoughts would be much appreciated...
Chris.
I have a vb program that creates several reports by opening an excel file inserting the contence of a database and then sorting as required using an excel macro.
There are three difference macro's depending on the report required.
The program works if I only generate 1 report however if I try and run more than 1 macro from VB without closing and reopening the program the following error message apprears:
Run-time error '1004' Method 'run' of object' _application' failed. - this appears on the line of code in vb that runs the macro.
Any thoughts would be much appreciated...
Chris.