A ali Feb 11, 2008 #1 I need a "confirmation Message Box" to let the users to click either "YES" (to continue) or "NO" (to terminate)
I need a "confirmation Message Box" to let the users to click either "YES" (to continue) or "NO" (to terminate)
D Daniel Pineault Feb 11, 2008 #2 Simply use the MsgBox Function MsgBox(prompt[, buttons] [, title] [, helpfile, context]) where the 2ns input variable specifies which button whouls appear to the user. In your case you'd want vbYesNo or vbOKCancel. Look it up in the help file, it has an example that even shows you how to get the users choice to then move forward with your code.
Simply use the MsgBox Function MsgBox(prompt[, buttons] [, title] [, helpfile, context]) where the 2ns input variable specifies which button whouls appear to the user. In your case you'd want vbYesNo or vbOKCancel. Look it up in the help file, it has an example that even shows you how to get the users choice to then move forward with your code.
F fredg Feb 11, 2008 #3 I need a "confirmation Message Box" to let the users to click either "YES" (to continue) or "NO" (to terminate) Click to expand... If MsgBox("Continue Y/N ", vbInformation + vbYesNo)= vbYes then ' Do the Yes Part Else ' Do the No part End If
I need a "confirmation Message Box" to let the users to click either "YES" (to continue) or "NO" (to terminate) Click to expand... If MsgBox("Continue Y/N ", vbInformation + vbYesNo)= vbYes then ' Do the Yes Part Else ' Do the No part End If