Run Time error 1004

bladeuk

Board Regular
Joined
Apr 6, 2005
Messages
178
Hi,

I have a shared spread sheet that pops up with the following for one user...but the nacro works fine for myself and other users.

Run-Time error '1004'

Method 'SaveAs' of object'_Workbook'failed

Debugging show no obvious errors (as stated - it works fine for me)

Clicking End runs the Macro but will not let user save the workbook.

Any ideas?

Cheers
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Not much to go on. What is the file name you are trying to use? Does the user have the same directory structure as you, and others?
 
Upvote 0
Left open by other user ?
On a server with no rights for the user ?
Trying to Save_As in the wrong format ?
Are all users on the same version of Excel ?

Maybe post the code in full !
 
Upvote 0
Apologies for limited info.

User has same access rights, same version of Excel (sits next to me same Office config)...no-one else was in the sheet...

Code below:-

Sub Sheffieldtosend()

Application.ScreenUpdating = False

Sheets(Array("Sheffield", "Sheffield Rolling")).Select
Sheets("Sheffield Rolling").Activate
Sheets(Array("Sheffield Rolling")).Copy
Cells.Select
Selection.Copy
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Sheets("Sheffield Rolling").Select
Cells.Select
Application.CutCopyMode = False
Selection.Copy
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Range("A33:Q47").Delete
Range("C1:g47").Delete
Range("D1:D47").Delete
Range("E1:L47").Delete
Range("A1").Select

below is highlited in red

ActiveWorkbook.SaveAs Filename:= _
"M:\Derwent House File Store\Front Office\Management Information and Stats\Sheffield Daily MI to send2.xls", FileFormat:=xlNormal _
, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=False

then back to normal font colour

ActiveWindow.Close
Sheets("Sheffield").Select

Range("A1:C1").Select

Application.ScreenUpdating = True

End Sub
 
Upvote 0
I have also checked that macro security settings match ...

Other macro's in same sheet work fine...........just this one that updates another sheet that is failing?
 
Upvote 0
The code as it stands works for me....
Check the filepath and it's relevance to the other users PC, as mentioned by TMS !
 
Upvote 0
Thanks for this............it has to be something to do with the filepath......although we all point to the same place......it appears we all have different 'titles' for the path............
 
Upvote 0

Forum statistics

Threads
1,214,573
Messages
6,120,310
Members
448,955
Latest member
Dreamz high

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