Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Save file in a new folder, but create folder only if folder doesn't already exist? | Excel Programming | |||
How to decide folder-depth or How to select more folders/subfolders (folder-tree) ? | Excel Discussion (Misc queries) | |||
Need code to save file to new folder, erase from old folder | Excel Discussion (Misc queries) | |||
allow user to select folder | Excel Discussion (Misc queries) | |||
prevent user from saving file to a folder but allow my code to save from behind. | Excel Programming |