Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
File saved as cell entry macro
I am looking for a macro that when activated by a button will rename the file to a cell entry (part number) and save the renamed file to a set directory. Is this possible? Thanks in advance! -- xyzer ------------------------------------------------------------------------ xyzer's Profile: http://www.excelforum.com/member.php...o&userid=26899 View this thread: http://www.excelforum.com/showthread...hreadid=401235 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
File saved as cell entry macro
I would think it would contain something like:
with activeworkbook .SaveAs Filename:="c:\yourpath\" _ & .worksheets("sheet1").range("a1").value end with But remember that there are characters that are not allowed in a filename (slashes come to mind). xyzer wrote: I am looking for a macro that when activated by a button will rename the file to a cell entry (part number) and save the renamed file to a set directory. Is this possible? Thanks in advance! -- xyzer ------------------------------------------------------------------------ xyzer's Profile: http://www.excelforum.com/member.php...o&userid=26899 View this thread: http://www.excelforum.com/showthread...hreadid=401235 -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro saved .xls file is not opening in 2007 | Excel Discussion (Misc queries) | |||
Excel 2007 Changes cell formating after file is saved | Excel Discussion (Misc queries) | |||
Why is path name added to active cell when Excel file is saved? | Excel Discussion (Misc queries) | |||
store file saved date in cell | Excel Worksheet Functions | |||
Recording the last saved date of an external file in a cell | Excel Programming |