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.

Be a part of the DaniWeb community

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