ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   I need a pop up message when a check box is checked (https://www.excelbanter.com/excel-discussion-misc-queries/51486-i-need-pop-up-message-when-check-box-checked.html)

Kipp

I need a pop up message when a check box is checked
 
I have created a yes and no check box in an excel sheet. When anyone checks
the yes box, I want a pop up to appear saying 'you must also submit the main
contract'.

pinmaster

I need a pop up message when a check box is checked
 

Hi,
I don't know a lot about VBA but this should work for you.


If CheckBox1.Value = True Then
MsgBox "You must also submit the main contract", vbDefaultButton1
Else: Exit Sub
End If


insert this code into the checkbox code or into a macro.

HTH
JG


--
pinmaster
------------------------------------------------------------------------
pinmaster's Profile: http://www.excelforum.com/member.php...fo&userid=6261
View this thread: http://www.excelforum.com/showthread...hreadid=478025



All times are GMT +1. The time now is 08:35 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com