Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
lsu-i-like
 
Posts: n/a
Default naming .xls file based on a cell in excel


when i hit save as, i would like excel to refer to a certain cell on my
spreadsheet to name the spreadsheet file. is there a way to do this?


--
lsu-i-like
------------------------------------------------------------------------
lsu-i-like's Profile: http://www.excelforum.com/member.php...o&userid=14317
View this thread: http://www.excelforum.com/showthread...hreadid=382106

  #2   Report Post  
Piranha
 
Posts: n/a
Default


lsu-i-like Wrote:
when i hit save as, i would like excel to refer to a certain cell on my
spreadsheet to name the spreadsheet file. is there a way to do this?

Isu,
With a macro,
Something like;
Asumimg cell you want to use is B2.
Subsitute your path to where you want the file to be saved.

Sub SaveAsFileName()
ActiveWorkbook.SaveAs Filename:="C:\Documents and
Settings\Owner\Desktop\" & Range("B2").Value & ".xls"
End Sub

Dave


--
Piranha
------------------------------------------------------------------------
Piranha's Profile: http://www.excelforum.com/member.php...o&userid=20435
View this thread: http://www.excelforum.com/showthread...hreadid=382106

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
can not open excel file, too many different cell formats Abdur Excel Discussion (Misc queries) 1 March 17th 05 12:13 PM
Cell protection in Excel is lost when file is uploaded to website. Mandrake Excel Discussion (Misc queries) 0 March 15th 05 04:53 PM
Locating a file in excel with a partial file name. Audra Excel Discussion (Misc queries) 2 February 19th 05 08:52 PM
Locating a file in excel with a partial file name. Audra Excel Discussion (Misc queries) 1 February 19th 05 08:51 PM
Weekly Transaction Processing Ralph Howarth Excel Worksheet Functions 4 January 19th 05 05:37 AM


All times are GMT +1. The time now is 03:29 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"