Application.Dialogs(xlDialogPrint).Showorresult = Application.Dialogs(xlDialogPrint).Showwhere 'result' contains true or false depending on whether the cancelbutton/window was closed with the top-right 'X' or not.