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 / Programming / September 2007

Tip: Looking for answers? Try searching our database.

Save As

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tc - 18 Sep 2007 16:37 GMT
hi. i have a worksheet which contains a name in a particular cell. is
it possible to create a macro that will use this name and save a copy
of the workbook with that name?
JW - 18 Sep 2007 16:42 GMT
This doesn't specify a path unless that is in your cell with the
filename.  But you can always add that into the code.
Sub foo()
   ThisWorkbook.SaveAs Range("A1").Text
End Sub
> hi. i have a worksheet which contains a name in a particular cell. is
> it possible to create a macro that will use this name and save a copy
> of the workbook with that name?
JW - 18 Sep 2007 16:43 GMT
Also, if you are storing your code in a separate workbook, you will
need to use ActiveWorkbook instead of ThisWorkbook.
> This doesn't specify a path unless that is in your cell with the
> filename.  But you can always add that into the code.
[quoted text clipped - 4 lines]
> > it possible to create a macro that will use this name and save a copy
> > of the workbook with that name?
 
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.