Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 846
Default User select Save To Folder

Thanks for taking the time to read my question.

I am running a macro to send data to a text file using Print # Statement.

I want the user to be able to run the macro, and have a window pop up that
lets them select the location they want to save the file to. It should look
just like windows explorer. I can do this in Access but not sure how to
accomplish in Excel. I did it a long time ago, and can't find my file that
had it.

Thanks,

Brad
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default User select Save To Folder

fileName = Application.GetSaveAsFileName

will call the dialog box then

ActiveWorkbook.SaveAs Filename:=fileName

Puts it away.

"Brad" wrote:

Thanks for taking the time to read my question.

I am running a macro to send data to a text file using Print # Statement.

I want the user to be able to run the macro, and have a window pop up that
lets them select the location they want to save the file to. It should look
just like windows explorer. I can do this in Access but not sure how to
accomplish in Excel. I did it a long time ago, and can't find my file that
had it.

Thanks,

Brad

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 846
Default User select Save To Folder

Thanks for the reply

Right idea, but I don't want to save my excel sheet, I want the user to
select the destination of the file and then save that path to my code.

So my code starts, then the user will get asked where they want to save the
export file to. I'll assign that result to my code.

So I'll get C:\My Documents\TestFolder\

Brad

"JLGWhiz" wrote:

fileName = Application.GetSaveAsFileName

will call the dialog box then

ActiveWorkbook.SaveAs Filename:=fileName

Puts it away.

"Brad" wrote:

Thanks for taking the time to read my question.

I am running a macro to send data to a text file using Print # Statement.

I want the user to be able to run the macro, and have a window pop up that
lets them select the location they want to save the file to. It should look
just like windows explorer. I can do this in Access but not sure how to
accomplish in Excel. I did it a long time ago, and can't find my file that
had it.

Thanks,

Brad

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 846
Default User select Save To Folder

You know, actually this will be great.

Thanks JLGWhiz.

Have a great day.

Brad

"JLGWhiz" wrote:

fileName = Application.GetSaveAsFileName

will call the dialog box then

ActiveWorkbook.SaveAs Filename:=fileName

Puts it away.

"Brad" wrote:

Thanks for taking the time to read my question.

I am running a macro to send data to a text file using Print # Statement.

I want the user to be able to run the macro, and have a window pop up that
lets them select the location they want to save the file to. It should look
just like windows explorer. I can do this in Access but not sure how to
accomplish in Excel. I did it a long time ago, and can't find my file that
had it.

Thanks,

Brad

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default User select Save To Folder

Brad,

See http://www.cpearson.com/excel/BrowseFolder.htm

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)


"Brad" wrote in message
...
Thanks for the reply

Right idea, but I don't want to save my excel sheet, I want the user to
select the destination of the file and then save that path to my code.

So my code starts, then the user will get asked where they want to save
the
export file to. I'll assign that result to my code.

So I'll get C:\My Documents\TestFolder\

Brad

"JLGWhiz" wrote:

fileName = Application.GetSaveAsFileName

will call the dialog box then

ActiveWorkbook.SaveAs Filename:=fileName

Puts it away.

"Brad" wrote:

Thanks for taking the time to read my question.

I am running a macro to send data to a text file using Print #
Statement.

I want the user to be able to run the macro, and have a window pop up
that
lets them select the location they want to save the file to. It should
look
just like windows explorer. I can do this in Access but not sure how
to
accomplish in Excel. I did it a long time ago, and can't find my file
that
had it.

Thanks,

Brad



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
Save file in a new folder, but create folder only if folder doesn't already exist? nbaj2k[_40_] Excel Programming 6 August 11th 06 08:41 PM
How to decide folder-depth or How to select more folders/subfolders (folder-tree) ? Subteam Excel Discussion (Misc queries) 2 May 7th 06 08:14 PM
Need code to save file to new folder, erase from old folder Ron M. Excel Discussion (Misc queries) 1 February 24th 06 06:02 PM
allow user to select folder jbhoop Excel Discussion (Misc queries) 3 January 3rd 06 10:10 PM
prevent user from saving file to a folder but allow my code to save from behind. susie Excel Programming 3 July 25th 03 03:01 PM


All times are GMT +1. The time now is 06:32 AM.

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

About Us

"It's about Microsoft Excel"