Home |
Search |
Today's Posts |
#1
|
|||
|
|||
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
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
can not open excel file, too many different cell formats | Excel Discussion (Misc queries) | |||
Cell protection in Excel is lost when file is uploaded to website. | Excel Discussion (Misc queries) | |||
Locating a file in excel with a partial file name. | Excel Discussion (Misc queries) | |||
Locating a file in excel with a partial file name. | Excel Discussion (Misc queries) | |||
Weekly Transaction Processing | Excel Worksheet Functions |