I have managed to run an Excel macro from within Access using the following code
XCL = DDEInitiate("Excel", "System")
DDEExecute XCL, "[Run(""pmac220502.xls!Auto"")]"
DDETerminateAll
However when I get to the DDEExecute line, my macro in Excel runs fine but an error message appears in Access stating that the DDE channel has timed out.
My macro runs for approx 20 minutes.
I have tried to alter the DDE Time Out settings using Tools.Options.Advanced but this only allows the channel to run with no response for 300 secs.
Please help, have aged 10 years
Angie
XCL = DDEInitiate("Excel", "System")
DDEExecute XCL, "[Run(""pmac220502.xls!Auto"")]"
DDETerminateAll
However when I get to the DDEExecute line, my macro in Excel runs fine but an error message appears in Access stating that the DDE channel has timed out.
My macro runs for approx 20 minutes.
I have tried to alter the DDE Time Out settings using Tools.Options.Advanced but this only allows the channel to run with no response for 300 secs.
Please help, have aged 10 years
Angie