Save As File Name from Cell?

  • Thread starter Thread starter Jeff Granger
  • Start date Start date
J

Jeff Granger

Is there any way of automatically generating a (Save As) file name from the
contents of a cell?

Jeff
 
Hi,

Yes you can, as example, the VBA would be:

Sub Macro1()
ActiveWorkbook.SaveAs Filename:="C:\" &
Sheets("Sheet1").Range("A1").Value & ".xls"
End Sub
 
Thanks Jon

Jon von der Heyden said:
Hi,

Yes you can, as example, the VBA would be:

Sub Macro1()
ActiveWorkbook.SaveAs Filename:="C:\" &
Sheets("Sheet1").Range("A1").Value & ".xls"
End Sub
 

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