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 / January 2006

Tip: Looking for answers? Try searching our database.

Changing workbook name in macro

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dutch76 - 26 Jan 2006 08:40 GMT
I want to change (in a macro) a workbook name before saving. Fo
instance: the original file is opened as "test.xls", an InputBox ask
for the extension (here: _abc) and on saving the name should b
"test_abc.xls". I don't want the original file to be overwritten. Ho
can I achieve this

--
Dutch7
Bob Phillips - 26 Jan 2006 09:52 GMT
   With Activeworkbook
       .saveas filename:= left(.name,len(.name)-4) & ib_value & ".xls"
   End With

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

> I want to change (in a macro) a workbook name before saving. For
> instance: the original file is opened as "test.xls", an InputBox asks
[quoted text clipped - 7 lines]
> Dutch76's Profile: http://www.hightechtalks.com/m829
> View this thread: http://www.hightechtalks.com/t2343497
 
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.