if it not working then use ActiveWorkbook.Application.DisplayAlerts = False