![]() |
Can I make an alert box with with a yes/no question?
I'd like to create a pop-up windo that the user selects yes or no and their
response is recorded in an excel cell |
Can I make an alert box with with a yes/no question?
You never said where you wnated to put the value. This code places the yes or
No in the first empty cell of column A on sheet 1 Sub AddMessage() With Sheet1.Cells(Rows.Count, "A").End(xlUp).Offset(1, 0) If MsgBox("Yes or No", vbYesNo, "Yes/No") = vbYes Then .Value = "Yes" Else .Value = "No" End If End With End Sub -- HTH... Jim Thomlinson "Brad N" wrote: I'd like to create a pop-up windo that the user selects yes or no and their response is recorded in an excel cell |
All times are GMT +1. The time now is 02:25 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com