ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   CheckBox Value (https://www.excelbanter.com/excel-programming/335980-checkbox-value.html)

Patrick Simonds

CheckBox Value
 
The code below enters True when the CheckBox is checked, and False when it
is not. Is there any way to have it place an X when the checkbox is checked
and nothing when it is not checked?

rng(1, 3).Value = CheckBox1.Value



STEVE BELL

CheckBox Value
 
Try something like this:

If CheckBox1.Value = True then
rng(1, 3)="X"
else rng(1,3).clearcontents
end if

--
steveB

Remove "AYN" from email to respond
"Patrick Simonds" wrote in message
...
The code below enters True when the CheckBox is checked, and False when it
is not. Is there any way to have it place an X when the checkbox is
checked
and nothing when it is not checked?

rng(1, 3).Value = CheckBox1.Value






All times are GMT +1. The time now is 02:01 PM.

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