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.


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
        Cancel = True
End If

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.