saving file as cell A1 to location other than default

jpettit

Board Regular
Joined
Feb 20, 2002
Messages
57
I borrowed the code for the simple "saveasA1", and put in a different path other than the default location. when i run the marco it is say location not found, etc. Do i have the syntax correct for the network path directory? If so, what else could be stopping the save?

Public Sub SaveAsA1Again()
ThisFile = Range("A1").Value
ActiveWorkbook.SaveAs FileName:="\\cs2data1\eesdwwshared\30Day\" & ThisFile
End Sub
 

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.
On 2002-02-21 15:35, jpettit wrote:
I borrowed the code for the simple "saveasA1", and put in a different path other than the default location. when i run the marco it is say location not found, etc. Do i have the syntax correct for the network path directory? If so, what else could be stopping the save?

Public Sub SaveAsA1Again()
ThisFile = Range("A1").Value
ActiveWorkbook.SaveAs FileName:="\cs2data1eesdwwshared30Day" & ThisFile
End Sub

try this

FileName:="\cs2data1eesdwwshared30Day" & ThisFile & ".xls"

Rick
 
Upvote 0

Forum statistics

Threads
1,223,320
Messages
6,171,432
Members
452,402
Latest member
siduslevis

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