View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
JE McGimpsey JE McGimpsey is offline
external usenet poster
 
Posts: 4,624
Default SaveFileName in Excel

Take a look at the GetSaveAsFileName method.

In article ,
TedT wrote:

Hi,
Everyone has been a big help in my Excel programming efforts. I have one
more question.

I am saving the data from the cells in a spreadsheet to a text file. I have
been able to use GetOpenFileName to find the file and then I can read it a
line at a time.

Now I need to save new data. Is there a way to get the GetOpenFileName to
say "Open" for the title, to list a default file name in the file line, and
change the "open" button to a "save" button? Once I have the location and
file name the user wants, I will use another routine to write the cell data
to a text file in the specificed location and with the specificed file name.
Thanks
TedT