Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Bakar,
This code should work: Sub SaveAndClose() If MsgBox("Would you like to save this workbook and close it?", vbYesNoCancel, "Save and Close?") < vbYes _ Then Exit Sub With ActiveWorkbook If .Path = "" Then .SaveAs Else .Save .Close End If End With End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Save data to closed workbook | Excel Programming | |||
save worksheet data to alternate closed workbook - next row | Excel Programming | |||
Copy sheet from closed workbook | Excel Programming | |||
ADO - recordset - closed excel workbook - know sheet name and cell name but no named ranges defined | Excel Programming | |||
Save TextBox Entry after WorkBook is closed | Excel Programming |