Application.Quitis the simple answer.If you place this where you say you want it, the subsequent lines ofcode won't be executed.You've set the DisplayAlerts to False, so the workbook won't be saved.I'd guess you want that.