ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Checkbox macros (https://www.excelbanter.com/excel-discussion-misc-queries/215315-checkbox-macros.html)

LN[_2_]

Checkbox macros
 
Hello,

I am new at creating macros, and am wondering if anyone can help me with a
detail explanation as I can't seem to figure this out. I have created some
checkboxes, and need to create a macro where if the checkbox is clicked then
cell 'A1' (for example) would provide a value of '1'. if not clicked, then
it would be '0'.

Any help would be much appreciated.

Bob Phillips[_3_]

Checkbox macros
 
You can basically do it without macros.

Grab a checkbox from the forms toolbar, and set the link cell property to
A1. This will return TRUE or FALSE depending upon the checked state, and you
can transform this to 1, 0 with =--A1.

--
__________________________________
HTH

Bob

"LN" wrote in message
...
Hello,

I am new at creating macros, and am wondering if anyone can help me with a
detail explanation as I can't seem to figure this out. I have created some
checkboxes, and need to create a macro where if the checkbox is clicked
then
cell 'A1' (for example) would provide a value of '1'. if not clicked,
then
it would be '0'.

Any help would be much appreciated.




LN[_2_]

Checkbox macros
 
Great! Thank you.

"Bob Phillips" wrote:

You can basically do it without macros.

Grab a checkbox from the forms toolbar, and set the link cell property to
A1. This will return TRUE or FALSE depending upon the checked state, and you
can transform this to 1, 0 with =--A1.

--
__________________________________
HTH

Bob

"LN" wrote in message
...
Hello,

I am new at creating macros, and am wondering if anyone can help me with a
detail explanation as I can't seem to figure this out. I have created some
checkboxes, and need to create a macro where if the checkbox is clicked
then
cell 'A1' (for example) would provide a value of '1'. if not clicked,
then
it would be '0'.

Any help would be much appreciated.






All times are GMT +1. The time now is 02:04 AM.

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