R
Rafi
What is the proper syntax for calling Excel from within Access and returning
an acknowledgment that Excel actually successfully completed a task?
The code below works well however, I need to add a feature that will check
whether the code in DHL.DHL ran successfully.
Private Sub Cmd1_Click()
Dim XL As Object
If XL Is Nothing Then
Set XL = CreateObject("Excel.Application")
XL.Workbooks.Open strUser & "\Application
Data\Microsoft\Excel\XLSTART\PERSONAL.XLS"
End If
XL.Run "PERSONAL.XLS!DHL.DHL"
MsgBox "File conversion Completed"
XL.Workbooks.Close
XL.Quit
End Sub
an acknowledgment that Excel actually successfully completed a task?
The code below works well however, I need to add a feature that will check
whether the code in DHL.DHL ran successfully.
Private Sub Cmd1_Click()
Dim XL As Object
If XL Is Nothing Then
Set XL = CreateObject("Excel.Application")
XL.Workbooks.Open strUser & "\Application
Data\Microsoft\Excel\XLSTART\PERSONAL.XLS"
End If
XL.Run "PERSONAL.XLS!DHL.DHL"
MsgBox "File conversion Completed"
XL.Workbooks.Close
XL.Quit
End Sub