How do I name a spreadsheet from the value in a single cell

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a formula that concatenates a poortion of a customer's name, and the
date as my invoice names (i.e. IN-NORT081606. I want to save my invoices
with the name derived in a cell with the above formula. Or I would like to
name the saved file using a macro IN-NORT081606.XLS. How can I do this in a
macro??
 
hi Mark,

Try this:

Sub testname()
thisworkbook.saveas "C:\" & Range("a1").value
End Sub

'Assume that range("a1").value isn;t empty

Rgds,
Halim

Mark Norton menuliskan:
 
It worked like a charm. Thank you so much. I am just getting started with
my Excel programming and am afraid that I might need to pick up a book.
Thanks a million!

Mark
 

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