Save file to Network Drive

santeria

Well-known Member
Joined
Oct 7, 2003
Messages
1,844
I'm just trying to Figure out what to change for a network file save.
Probably something amazingly basic...

However, I have...

Code:
Sub SAVECMSDAILYNETWORK()
'
' SAVECMSDAILYNETWORK Macro
' Macro recorded 2/24/2004 
'

'
    Windows("M:\REPORTS\02_FEBRUARY SUMMARY\CMS Daily.xls").Activate
    ChDir "E:\HR Outsourcing\Benefits\Reports"
    ActiveWorkbook.SaveAs Filename:= _
        "E:\HR Outsourcing\Benefits\Reports\CMS Daily2.xls", FileFormat:=xlNormal, _
        Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
        CreateBackup:=False
    ActiveWorkbook.Close
End Sub

And I need to know what to change to make the thing work.

Ta

(y)
 
You're missing an end with :)
santeria said:
Okay, Your Code Works.

Code:
Sub SAVECMSDAILYNETWORK()
  Dim tsheet As Workbook
With Application
        .DisplayAlerts = False
        .ScreenUpdating = False
-->End With<-- 
oldfile = "M:\REPORTS\02_FEBRUARY SUMMARY\CMS Daily.xls"
Set tsheet = Workbooks.Open(Filename:=oldfile)
finame = "E:\HR Outsourcing\Benefits\Reports\CMS Daily2.xls"
tsheet.SaveAs Filename:=finame
tsheet.Close
With Application
        .DisplayAlerts = True
        .ScreenUpdating = True
    End With

End Sub
 
Upvote 0

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Thanks !!!!!!!!!!!!

Works TOTALLY Brialliantly !!!!!!

Very Appreciated.
That wraps this side of the event Horizon.

I can use this for saving multiple Files.
Just change the Address and thats it.

You have no idea how much I appreciate it !!!!!!


Ta

(y) :pray: :pray: :pray: :pray: :pray: (y)
 
Upvote 0

Forum statistics

Threads
1,214,905
Messages
6,122,175
Members
449,071
Latest member
cdnMech

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