Issue Running an Access Macro through Excel

joeymonts18

New Member
Joined
Sep 13, 2016
Messages
4
Good Afternoon,

I am trying to run a Macro through excel without opening the Access DB on my machine. The Access DB is on a shared network drive that everyone in my company uses. The issue is that it is running on my machine but not on anyone elses. This is the code that I am using:
Sub Macro1()
'
' Macro1 Macro
'


Dim A As Object
Set A = CreateObject("Access.Application")
A.OpenCurrentDatabase ("\\DAfile\BSG\Joe\Deep Dive\Updated Forecast\Post Meeting JDA Database.accdb")
A.DoCmd.RunMacro "MACRO"
A.CloseCurrentDatabase
A.Quit
Set A = Nothing
'
End Sub

As I said, it is working on my machine, but not on others who are also connected to this shared drive. The error they are receiving is below (Error 3044). The debugger is pointing towards this line as the issue "A.DoCmd.RunMacro "MACRO"". Please let me know if you have a solution or need any additional information. Thanks!
clip_image002.jpg
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Hi

if the 'others' Open the database in Access and run the Macro, what happens, does it work/give an error?
 
Upvote 0
Hi,

Check/compare the Access Reference in other user system and if its not same with you the check the reference that is missing in user system
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,184
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top