Hi, I'm a student from Malaysia and I am trying to do a program where the program will run and then when it reaches a certain part, it will show a message and pauses the program until the user clicks done/continue/yes button at the message.

Flow:

Programme running-->Message-->"Please close all text files"-->user closes any text files----->user clicks continue/done/yes button at the message-->programme continues

Thank you so much.

I just started learning vb.

Use something like

If MsgBox("Are you sure you want to continue?", vbYesNo, "Confirm!") = vbYes Then
        'Code to continue task
    Else
        Cancel = True
End If

Thanks! LOL. Never crossed my mind with that solution. Thanks very much.