ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   If option button not selected (https://www.excelbanter.com/excel-programming/344919-if-option-button-not-selected.html)

Hywel[_2_]

If option button not selected
 

How do I get a warning message to appear if one of two option buttons
within a frame are not selected?

I have tried with optionbutton.value = True but I can't get this to
work.
Many thanks,
Hywel
Manchester UK


--
Hywel
------------------------------------------------------------------------
Hywel's Profile: http://www.excelforum.com/member.php...o&userid=14824
View this thread: http://www.excelforum.com/showthread...hreadid=482809


Bob Phillips[_6_]

If option button not selected
 
With ActiveSheet
If Not .OptionButtons("Option Button 1").Value And _
Not .OptionButtons("Option Button 2") Then
MsgBox "None set"
End If
End With


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Hywel" wrote in
message ...

How do I get a warning message to appear if one of two option buttons
within a frame are not selected?

I have tried with optionbutton.value = True but I can't get this to
work.
Many thanks,
Hywel
Manchester UK


--
Hywel
------------------------------------------------------------------------
Hywel's Profile:

http://www.excelforum.com/member.php...o&userid=14824
View this thread: http://www.excelforum.com/showthread...hreadid=482809




Hywel[_3_]

If option button not selected
 

Thanks very much, Bob

--
Hywe
-----------------------------------------------------------------------
Hywel's Profile: http://www.excelforum.com/member.php...fo&userid=1482
View this thread: http://www.excelforum.com/showthread.php?threadid=48280



All times are GMT +1. The time now is 11:41 PM.

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