Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default Prompt for Save Path - Use Cell Content for File Name

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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,533
Default Prompt for Save Path - Use Cell Content for File Name

Hi

Maybe this is what you are looking for:

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

Regards,
Per

"Chris T-M" skrev i meddelelsen
...
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.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
File Save Macro as Cell content TonyD Excel Programming 0 February 19th 07 07:00 PM
prompt user to save file as {desired_name} and save it to a variab GeneWan Excel Programming 1 January 5th 07 06:46 AM
save prompt for user exit, but no save prompt for batch import? lpj Excel Discussion (Misc queries) 1 February 25th 06 02:08 AM
Save as using cell content in file name NickMinUK Excel Programming 1 June 15th 04 10:06 AM
Save file path in cell Jim Melchers Excel Programming 1 September 19th 03 11:36 PM


All times are GMT +1. The time now is 01:39 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"