Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
As far as I know there are two things you could do;
This would simply save the file automatically and not give them chance to change the name, adding the contents of cell A1 to the end o your specified string: sub workbook_beforeclose(cancel as integer) activeworkbook.saveas "Field Rating - " & sheet1.range("A1") end sub I'm using 2003 so not sure if this one is available in 2000, but migh be worth a try. It will basically bring up the saveas dialog box an suggest the concatenated result of your standard string and th contents of cell A1: sub workbook_beforeclose(cancel as integer) activeworkbook.getsaveasfilename "Field Rating - " sheet1.range("A1") end sub I'd recommend having a look at the help files for these methods to ge a full idea of what can be done with them. Hope this helps -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
a Macro to "save as" filename from a cell on the sheet and then pr | Excel Discussion (Misc queries) | |||
"CELL("FILENAME") NOT UPDATE AFTER "SAVE AS" ACTION | Excel Discussion (Misc queries) | |||
CELL("filename",a1) not updating automatically | Excel Discussion (Misc queries) | |||
Cell("filename") doesn't update to new filename when do save as. | Excel Worksheet Functions | |||
how to increase size of "name box" and "contents of cell " displa. | New Users to Excel |