If MsgBox("Are you sure that you wish to delete the contents of B2 ?", vbYesNo, "Confirm") = vbYes Then Buttons: choice of buttons (yes, no, cancel, etc.) + other options.Here are the three arguments that we will use: MsgBox(,, ) We will now create a dialog box that asks us to confirm the deletion before the two instructions are carried out. In this case, MsgBox is called with only one argument. MsgBox "The contents of B2 have been deleted !" ![]() ![]() ![]() Until now, we have only used MsgBox dialog boxes to display information: Sub delete_B2()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |