Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Chage the reference of [a1] to the cell on your worksheet that has the name
you want to save as: Sub SaveAndClose() ActiveWorkbook.SaveAs Filename:= _ "C:\myDirectory\" & [a1] & ".xls" ActiveWorkbook.Close End Sub -- Regards, Dave "Alan_Malawi" wrote: Hi I need to create a macro that will first do a "save as" picking up a file name from a cell on the worksheet and then will exit excel |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
macro wants to exit excel | Excel Discussion (Misc queries) | |||
No prompt on exit in Excel 2003 | Setting up and Configuration of Excel | |||
Excel 2003 Will Not Save On Exit | Excel Discussion (Misc queries) | |||
Excel 2003 doesn't prompt to save on exit? | Setting up and Configuration of Excel | |||
Excel 2003 doesn't prompt to save on exit? | Setting up and Configuration of Excel |