G
Guest
Hi, I am having some trouble automating something -- here's what I have to
run it's a macro in Excel VBA from Access -- but I need to add that it puts
my output into the sheet and I'm unsure how to add that logic
Sub RunAccessMacro()
Dim appAcc As Access.Application
'Opens Access or gets reference to app already running
Set appAcc = New Access.Application
Application.DisplayAlerts = False
'Optional to show or hide Access
appAcc.Visible = True
appAcc.OpenCurrentDatabase ("P:\Analytic\Heather\Individual\MemberSpans.mdb")
appAcc.DoCmd.RunMacro "Macro1"
'Close Access
appAcc.Quit
'This will close Access, even w/o the 'Quit' command
Set appAcc = Nothing
Application.DisplayAlerts = True
End Sub
run it's a macro in Excel VBA from Access -- but I need to add that it puts
my output into the sheet and I'm unsure how to add that logic
Sub RunAccessMacro()
Dim appAcc As Access.Application
'Opens Access or gets reference to app already running
Set appAcc = New Access.Application
Application.DisplayAlerts = False
'Optional to show or hide Access
appAcc.Visible = True
appAcc.OpenCurrentDatabase ("P:\Analytic\Heather\Individual\MemberSpans.mdb")
appAcc.DoCmd.RunMacro "Macro1"
'Close Access
appAcc.Quit
'This will close Access, even w/o the 'Quit' command
Set appAcc = Nothing
Application.DisplayAlerts = True
End Sub