Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a spreadsheet with checkboxes (shapes) which I can refer to in code
using (for example) ActiveSheet.Shapes("Check Box 19") Can I derive the checkbox's state (true/false) using code or is it just a dumb shape? Thanks. Keith. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Keith,
You could link a cell to the checkbox and check the value of that cell instead. You can do that by right-clicking on the checkbox then click on "Format Control". Go to the Control tab and specify a cell in the cell-link field. If you don't want to link the checkbox to a cell, you can also get the value of the CheckBox by using either one of the following: ActiveSheet.CheckBoxes("Check Box 19").value or ActiveSheet.Shapes("Check Box 19").OleFormat.Object.Value -- Hope that helps. Vergel Adriano "Keith Wilby" wrote: I have a spreadsheet with checkboxes (shapes) which I can refer to in code using (for example) ActiveSheet.Shapes("Check Box 19") Can I derive the checkbox's state (true/false) using code or is it just a dumb shape? Thanks. Keith. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
"Vergel Adriano" wrote in message
... Keith, You could link a cell to the checkbox and check the value of that cell instead. You can do that by right-clicking on the checkbox then click on "Format Control". Go to the Control tab and specify a cell in the cell-link field. If you don't want to link the checkbox to a cell, you can also get the value of the CheckBox by using either one of the following: ActiveSheet.CheckBoxes("Check Box 19").value or ActiveSheet.Shapes("Check Box 19").OleFormat.Object.Value -- Hope that helps. It certainly does, many thanks indeed. Regards, Keith. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Real Newbie newbie question | New Users to Excel | |||
Newbie Question - Subtraction Formula Question | Excel Discussion (Misc queries) | |||
CSV Newbie Question | Excel Programming | |||
Newbie With A Question | Excel Worksheet Functions | |||
Shapes question | Excel Programming |