Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Saving files automaticly in excel

Status
Not open for further replies.

Nik1979

MIS
Sep 1, 2003
3
GB
Hi, I’ve setup a invoice document within excel. I was wondering if there was ways to get excel to automatically save the document with a new file name that corresponds to the invoice number. At the moment the files are being saved manually using the save as function. However sometimes people forget to do this and save over the top of the last invoice.
 
Hi!

Try posting in forum707 or forum68

In VBA, the syntax

ActiveWorkbook.Close True, "Invoice" & range("A1")

will save the document at current path with the name "Invoice" and whatever resides in cell A1

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top