VbYesNo

J

Joel Montalvo

I don't quite understand the need for the secondary
message boxes but try this instead:

Dim msg As Integer ' return value
msg = MsgBox("You are about to run the archive process, do
you want to continue?", vbYesNo)
If msg = vbYes Then 'Test the return value
MsgBox "Ok"
Else
MsgBox "No"
End If
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top