Mega Code Archive

 
Categories / VisualBasic Script / Application
 

Cancel a procedure if the user clicked the Cancel button in a dialog box

Sub dlg()     If Dialogs(wdDialogFileOpen).show = 0 Then End End Sub