Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Save excel file with filename = cell text

Hi,

I'd like to add some code to the end of my macro that saves the current
excel file with a filename derived from the text of two cells in the
worksheet. ie: i4 = 5486, i3 = TB -- The filename would be 5486TB.xls
What code do i need?

Thank you for your help
Regards
Troy


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default Save excel file with filename = cell text

ActiveWorkbook.SaveAs Range("I4") & Range("I3") & ".xls"

Of course, this assumes that (a) the current directory is the one that you
want save the file into and (2) there is no file by the same name in the
same location. So you will need some error-checking.

--

Vasant



"TroyB" wrote in message
u...
Hi,

I'd like to add some code to the end of my macro that saves the current
excel file with a filename derived from the text of two cells in the
worksheet. ie: i4 = 5486, i3 = TB -- The filename would be 5486TB.xls
What code do i need?

Thank you for your help
Regards
Troy




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to save file as different filename mac Excel Worksheet Functions 6 November 21st 07 10:43 PM
Cell("filename") doesn't update to new filename when do save as. Louis Excel Worksheet Functions 2 March 22nd 07 07:27 PM
Auto save file copy with unique filename Allen Excel Worksheet Functions 1 June 27th 06 08:18 PM
Save file as text from cell jweasl Excel Discussion (Misc queries) 1 September 9th 05 06:39 PM
Save as .htm with filename from cell galimi Excel Discussion (Misc queries) 1 May 13th 05 04:51 AM


All times are GMT +1. The time now is 07:50 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"