Prompt for Save Path - Use Cell Content for File Name

C

Chris T-M

Summary: User selected Path + File Name from a Cell to generate a 'Save
Path/file name'

Details:
I need to prompt the user for a Save To location. I want them to be
presented with a browser box, not a cell where they have to type in a path
manually.

I need to take that path and a pre-generated file name and save.

I'm currently generating the file name in a cell by using Concatenate...
Then saving...
ActiveWorkbook.SaveAs Filename:=Range("BZ21").Value

If I pre-set the path this works fine. I just don't want to pre-set the path.
 
P

Per Jessen

Hi

Maybe this is what you are looking for:

MyFile = Range("A1").Value
MyPath = Application.GetSaveAsFilename(initialfilename:=MyFile, _
Title:="Select path")

Regards,
Per
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top