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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel SaveAs Autogenerated Reference

Status
Not open for further replies.

TortolaChris

Technical User
Jan 13, 2002
56
GB


I’m trying to automatically save quotations generated in Excel in a logical way.

1. Is there a way that I can get Excel to auto suggest a filename based on data in the spreadsheet?

2. Can I pick up the two digit day, month, year and then concatenate that with other info?

3. Is there a way of picking up the upper case letters in a text string and concatenating that with the other info? I’d like to use the originator initials in the filename too.

I am really very stuck!

Thanks for any help

Chris
 
yup, yup and yup
Use the saveas method
workbook.saveas _ name:="whatevertextstringyouwanttogenerate.xls"

To save as todays date for example

mDate = format(today(),"ddmmyy")

mString = "GB"

activeworkbook.saveas name:= mString & mDate

If you give more specifics, I can probably help you but this should give you an indication of what to do

HTH
Geoff
 
Thanks for your advice Geoff. Sorry for not thanking you earlier - been moving.
Thanks again
Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top