Message Box With Yes - No Online Excel and Excel Macro (VBA) Courses Copy Macro 'For online Excel courses click: https://www.excelsizeyeter.com/excelwithkenan.com/udemy_giris.php Sub YesNoMessageBox() Dim Answer As String Dim MyNote As String 'Place your text here MyNote = "Do you agree?" 'Display MessageBox Answer = MsgBox(MyNote, vbQuestion + vbYesNo, "???") If Answer = vbNo Then 'Code for No button Press MsgBox "You pressed NO!" Else 'Code for Yes button Press MsgBox "You pressed Yes!" End If End Sub Report problem with this macro This macro does not work. There's an error in the code. Other You can write your comments about the error in the box below. Report error ALL MACROS Youtube Channel The following macros may be useful for you. Similar Results NoMacro Name 1 Message box with Yes - No 2 Write your name with file backup message box 3 Message box: Message boxes with OK and CANCEL options 4 Message box: Message boxes with YES, NO and CANCEL options 5 100 messages with the selected cell 6 save book you specify name - notifies you by message 7 remove sheet / page protections 8 excel operators hk 9 Message box (MsgBox) how to use and details (buttons parameters) 10 calculator on / off 11 Is the selected part within a certain region? 12 number of sheet / page prints with message box (prints even if the sheet / page is blank) 13 receiving message with keyboard arrow directions 14 Find with Inputbox 15 delete from listbox with double click 16 specify the number of copies to print from the printer 17 record on multiple sheet / pages with the same macro 18 backups and saves the workbook (to the current directory) --- per-author 19 Use the new line (ENTER) character when writing notes in a macro 20 Use double quotes (") character when writing notes in macro