How to include the contents of a cell in a filename

  • Thread starter Thread starter BARGAIN BIN
  • Start date Start date
B

BARGAIN BIN

How do I include the contents of a cell containing the date (which is
automatically updated) in the file name?

Hope I've asked clearly enough.

Thank you,
Leonard
 
Leonard, see if something like this will help,
MyName = "My Sheet For " & Format(Range("A1"), "mm.dd.yyyy") & ".xls"
ActiveWorkbook.SaveAs Filename:=MyName
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2000 & 2003
** remove news from my email address to reply by email **
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top