View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default Saving a file with a name generated by cell values

sPath = "C:\Myfiles\"

thisworkbook.SaveAs sPath & _
thisworkbook.worksheets("Sheet3").Range("A1").Valu e

--
Regards,
Tom Ogilvy


"analyst " wrote in message
...
Hi,

I'm building a database of customer enquiries. The macro i have written
extracts data from the user input cells and places them in a hidden
sheet ready for submission to a central database via the template
wizard.

What I'd like to do is, rather than having users on the network saving
the file as random names, to have some control over the naming process
so that the customer's name and the date is picked up and turned into
the file name.

I've got as far as choosing the filename with this formula:-

=CONCATENATE(Customer,"_",Date,".xls")

which gives me the name. I also will have a standard path that this
tags on to on the network.

Please can you tell me how to save the file based on this cell's
value?

Thanks

Analyst


---
Message posted from http://www.ExcelForum.com/