Helo,
I use the following vba code to run a macro from an access database, but I get the error "Run-time error '2501' : the run macro action was canceled".
Dim A As Object
Set A = CreateObject("Access.Application")
A.Visible = True
A.OpenCurrentDatabase ("C:\D\Raport macro reconciliere\Raport Reconciliere.accdb")
A.DoCmd.RunMacro "Macro"
A.CloseCurrentDatabase
End Sub
Thank you very much
I use the following vba code to run a macro from an access database, but I get the error "Run-time error '2501' : the run macro action was canceled".
Dim A As Object
Set A = CreateObject("Access.Application")
A.Visible = True
A.OpenCurrentDatabase ("C:\D\Raport macro reconciliere\Raport Reconciliere.accdb")
A.DoCmd.RunMacro "Macro"
A.CloseCurrentDatabase
End Sub
Thank you very much