Macro Used on Networked PC's

tanderson

New Member
Joined
Mar 23, 2016
Messages
9
I created a Macros for a spreasheet that works wonderfully up until it saves. It works just fine on my PC but when someone trys to run it on another Networked PC it bug's out at the place in red below:

Dim dtDate As Date
dtDate = Date
Dim strFile As String
strFile ="E:\Elvis\Franchises\Client\Data Documents\Data Team Reports\Client Data Broadcast Data " & Format(dtDate, "mm-dd-yyyy")& ".xlsm"
ActiveWorkbook.SaveAs Filename:=strFile,FileFormat _
:=xlOpenXMLWorkbookMacroEnabled,CreateBackup:=False

I'm getting Run-timer error '1004':
Method 'SaveAs' of object'_Workbook' failed.

So I understand that it's an issue with the other Networked PC's understanding 'Workbook' but I'm not understanding how to fix this. Any suggestions?
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
This isn't my area of expertise, but could it possibly be because the directory / filepath are somehow not recognised on those other machines ?
 
Upvote 0
Thanks for the feedback! The filepath is accessible for all networked PC's, it's directing toward one of the main shared drives so that should be the issue. The other users can get to those locations manually. With your message I did go to the specific folder where this file is being saved to check permission on it since I created it. It wasn't officially marked read only but I when ahead and marked everyone as full control. I had another user try this again and same error :(
 
Upvote 0
What happens when you put the following into their Windows Explorer Navigation Bar?

E:\Elvis\Franchises\Client\Data Documents\Data Team Reports
 
Upvote 0

Forum statistics

Threads
1,223,162
Messages
6,170,431
Members
452,326
Latest member
johnshaji

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