Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / October 2006

Tip: Looking for answers? Try searching our database.

Save As File Name from Cell?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeff Granger - 18 Oct 2006 13:26 GMT
Is there any way of automatically generating a (Save As)  file name from the
contents of a cell?

Jeff
Jon von der Heyden - 18 Oct 2006 13:37 GMT
Hi,

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

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

Signature

Two heads are better than one!

Email: subst1tut3 numb3rs for l3tt3rs...

> Is there any way of automatically generating a (Save As)  file name from the
> contents of a cell?
>
> Jeff
Jeff Granger - 18 Oct 2006 13:43 GMT
Thanks Jon

> Hi,
>
[quoted text clipped - 10 lines]
>>
>> Jeff
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.