
After pressing Yes, you will find a popup window mentioning YES PLEASE.Then, you will find a dialog box with the heading YES or NO.After that, Run the code by pressing f5.MsgBox “You Pressed NO”, vbCritical, “NO THANKS” MsgBox “You Pressed YES”, vbInformation, “YES PLEASE” R = MsgBox("Are you sure to press YES",vbYesNo + vbQuestion, “YES or NO”) Moreover, to add the heading of every dialog box, write down the following code.If you press No, another cross symbol will occur.If you press Yes, this icon will occur.After that, this window will occur and a new question mark will appear on the left side of the question.R = MsgBox("Are you sure to press YES",vbYesNo + vbQuestion) To make attractive the interactive dialog box, write down the following code:.If you press No, the popup window will show the following result.If you Press Yes, a window will show results just like the one given below.A pop-up window just like the following will show the result.R = MsgBox("Are you sure to press YES",vbYesNo)


In the ribbon of the Excel worksheet, some groups of commands may have more commands. For instance, Consider a blank workbook or worksheet in Excel. It will be easy for you to understand if I give an example.

Before jumping into the procedures, we need to know what a dialog box actually is.
