You are assigning the value of the answer (=1).
You should be listening for the (return value) answer:
Dim intReturnValue as Integer
intReturnValue = MsgBox("Proceed with the queries?", _
vbQuestion + vbYesNo, "Continue?")
'Msgbox return values: vbYes, vbNo, vbOK, vbCancel
If intReturnValue = vbYes then
'perform action here
Else
Exit sub
End If
jmonty
> Hi experts,
>
[quoted text clipped - 11 lines]
>
> J.
jesZee - 15 Aug 2006 20:52 GMT
jmonty,
thanks for that code but i m very green when it comes to coding.
i m using macro design to get thru this pop-up msg - can you enlighten
me either putting the codes in the visual basic or in macro.
thanks a lot.
j.
> You are assigning the value of the answer (=1).
> You should be listening for the (return value) answer:
[quoted text clipped - 26 lines]
> >
> > J.