Hey everyone,
I have written an Excel VBA that runs an Access Macro. The problem is that I receive the error message 'Microsoft Excel is waiting for an OLE action to complete' over and over.
The Access macro results in a large file and takes about 1 minute when I run it by itself (manually, not through Excel macro). The Access Macro was made to output the data into a new spreadsheet and I cannot change the Access macro.
I included the lines 'Application.DisplayAlerts = False' and 'Application.DisplayAlerts = True' because I saw someone recommend that on this site.
Here is my Excel VBA Code
Sub Run_Access_Macro()
Dim A As Object
Set A = CreateObject("Access.Application")
A.OpenCurrentDatabase ("C:\Users\john\desktop\SFWH.accdb")
A.DoCmd.RunMacro "mT-MobileProject"
Application.DisplayAlerts = False
A.CloseCurrentDatabase
A.Quit
Application.DisplayAlerts = True
Set A = Nothing
End Sub
Any help is greatly appreciated!!
Thank you
John
I have written an Excel VBA that runs an Access Macro. The problem is that I receive the error message 'Microsoft Excel is waiting for an OLE action to complete' over and over.
The Access macro results in a large file and takes about 1 minute when I run it by itself (manually, not through Excel macro). The Access Macro was made to output the data into a new spreadsheet and I cannot change the Access macro.
I included the lines 'Application.DisplayAlerts = False' and 'Application.DisplayAlerts = True' because I saw someone recommend that on this site.
Here is my Excel VBA Code
Sub Run_Access_Macro()
Dim A As Object
Set A = CreateObject("Access.Application")
A.OpenCurrentDatabase ("C:\Users\john\desktop\SFWH.accdb")
A.DoCmd.RunMacro "mT-MobileProject"
Application.DisplayAlerts = False
A.CloseCurrentDatabase
A.Quit
Application.DisplayAlerts = True
Set A = Nothing
End Sub
Any help is greatly appreciated!!
Thank you
John