Okay, I am having a total brain fart and should be able to figure this out.. This is part of the code for one function in my massive dBase. As you see it's a Yes, No, Cancel call. I want it to default to NO all the time and go right to the IF statement, without it popping up the Yes, No, Cancel message box
Code:
strIntroMessage = "Click 'Yes' to query " & Replace(strTargetOU," ","")strIntroMessage = strIntroMessage & vbCrLf & vbCrLf & "Click 'No' to select a different OU to query"
strChoice = MsgBox(strIntroMessage,vbYesNoCancel,"Select Target Container")
' Yes=6 No=7 Cancel=2
If strChoice = 7 Then
GetTargetLocation
ElseIf strChoice = 2 Then
WScript.Echo vbTab & "*** Action has been cancelled. Quitting..." & vbCrLf
WScript.Quit
End If