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

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
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,214,553
Messages
6,120,179
Members
448,948
Latest member
spamiki

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