Hi,
I am trying to run an Excel Macro "Plot_OnAirDate". However i keep getting the error message of:
Error 440
Automation Error
Below is my code, can anyone point out where i've gone wrong? Thanks for any advice rendered.
Dim xlApp1 As Object
Dim xlWrkBook1 As Workbook
Set xlApp1 = CreateObject("Excel.Application"
Set xlWrkBook1 = xlApp1.Workbooks.Open("L:\TCH Traffic Chart.xls"
xlApp1.Application.Run "Module1.Plot_OnAirDate"
I am trying to run an Excel Macro "Plot_OnAirDate". However i keep getting the error message of:
Error 440
Automation Error
Below is my code, can anyone point out where i've gone wrong? Thanks for any advice rendered.
Dim xlApp1 As Object
Dim xlWrkBook1 As Workbook
Set xlApp1 = CreateObject("Excel.Application"
Set xlWrkBook1 = xlApp1.Workbooks.Open("L:\TCH Traffic Chart.xls"
xlApp1.Application.Run "Module1.Plot_OnAirDate"