I am trying to open an Excel file w/ a macro so that I can run the macro when I export my query out of Access to Excel, I want the following to happen:
1. Open the wkbk containing my macros minimized
2. Export the query to a new workbook (this is working w/ the transferspreadsheet command)
3. Maybe use Sendkeys to run the macro in on the new file.
I tried using code with " new excel.application and I keep getting this error:Compile Error: User-defined type not defined and the New Excel.appliation is the line that is highlighted.
I have Access 10.0 object library and DAO 3.6
I tried adding Excel 10.0 but it gave me an error conflicting references. How do I make this work?
1. Open the wkbk containing my macros minimized
2. Export the query to a new workbook (this is working w/ the transferspreadsheet command)
3. Maybe use Sendkeys to run the macro in on the new file.
I tried using code with " new excel.application and I keep getting this error:Compile Error: User-defined type not defined and the New Excel.appliation is the line that is highlighted.
I have Access 10.0 object library and DAO 3.6
I tried adding Excel 10.0 but it gave me an error conflicting references. How do I make this work?