ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   CheckBox Value (https://www.excelbanter.com/excel-programming/335979-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



kalem_l via OfficeKB.com

CheckBox Value
 

Try this:

If CheckBox1.Value Then
mg(1,3).Value = "X"
End If

Patrick Simonds wrote:
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 05:21 PM.

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