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

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
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,213,527
Messages
6,114,142
Members
448,551
Latest member
Sienna de Souza

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