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

Create Toolbar to Save As cell A1 1

Status
Not open for further replies.

scottie1

Programmer
Dec 12, 2003
50
GB
I'm trying to save a spreadsheet with the same name as cell A1. The macro needs to be attached to a toolbar though as constantly using new workbooks.
 
Hi Scottie1
Not sure what you're after so if this isn't it you may need to post some more info

This will save the active workbook to a set directory, giving it the name of any text that is in cell A1

Code:
ChDir "C:/temp" 'set save path
ActiveWorkbook.SaveAs Worksheets(1).Range("A1").Text

As I say, if this isn't what you need post back with a little more detail.

;-)

If a man says something and there are no women there to hear him, is he still wrong? [ponder]
The faqs ma'am, just the faqs. Get the best from these forums : faq222-2244
 
Thats exactly what I wanted

Thanks very much I will now look like a miracle worker.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top