G
Guest
I had to change Excel Macro to reference different column.
That is now working, but only if I launch the macro from Excel.
I was able to launch it from Access and everything worked properly before
adding
the new columns.
Now it only works on first worksheet, and won't loop through the remaining ws.
This is the code from within Access
Public Function CleanClinic()
Dim appXL As Excel.Application
Set appXL = New Excel.Application
appXL.Visible = False
MsgBox "Please Wait While Clinic List Updates"
DoCmd.Hourglass True
appXL.Workbooks.Open "N:\Shared\ExcelTest.xls"
MsgBox "Almost Done"
appXL.ActiveWorkbook.Save
appXL.Quit
MsgBox "Update Complete"
DoCmd.Hourglass False
End Function
I am going loony toons trying to figure what's wrong.
Help please and thank you.
That is now working, but only if I launch the macro from Excel.
I was able to launch it from Access and everything worked properly before
adding
the new columns.
Now it only works on first worksheet, and won't loop through the remaining ws.
This is the code from within Access
Public Function CleanClinic()
Dim appXL As Excel.Application
Set appXL = New Excel.Application
appXL.Visible = False
MsgBox "Please Wait While Clinic List Updates"
DoCmd.Hourglass True
appXL.Workbooks.Open "N:\Shared\ExcelTest.xls"
MsgBox "Almost Done"
appXL.ActiveWorkbook.Save
appXL.Quit
MsgBox "Update Complete"
DoCmd.Hourglass False
End Function
I am going loony toons trying to figure what's wrong.
Help please and thank you.