I hope I understand your question.
Below is and example of an If statement that includes a MsgBox within it that allows you to do what ever you need based on the choice from the MsgBox using Yes/No choices.
If MsgBox("Your Message Here", vbYesNo, "Your Message Title") = vbYes Then
'Code Here if "Yes" is chosen
Else
'Code Here if "No" is chosen
End If
HTH
RDH
[This message has been edited by R. Hicks (edited 05-25-2001).]