ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Using a macro to code a checkbox on click - Help (https://www.excelbanter.com/excel-programming/314624-using-macro-code-checkbox-click-help.html)

Rog[_3_]

Using a macro to code a checkbox on click - Help
 
Hello,
I have an Checkbox that I want to do the following:

If checkbox is clicked, then add the text "Under" in Cell V3

**I think this needs "CheckBox.Value", but I cant get my finger on this
one. ANY SUGGESTIONS ON HOW TO CODE THIS ONE?

Thanks,
Rog

Jerry Price

Using a macro to code a checkbox on click - Help
 


Rog,

Try this

If CheckBox1.Value = "True" Then
Set C = Range("v3")
C.Select
C.Value = "test"
End If



Rog wrote:

Hello,
I have an Checkbox that I want to do the following:

If checkbox is clicked, then add the text "Under" in Cell V3

**I think this needs "CheckBox.Value", but I cant get my finger on this
one. ANY SUGGESTIONS ON HOW TO CODE THIS ONE?

Thanks,
Rog



--


Jerry

~~~ plz remove "nospam." when replying via e-mail ~~~


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

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