Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm new to Excel programing - have some Access programming. I have a column
that has yes/no boxes in Excel. Is there a way to test the entry to see if it is yes or no? I'm thinking about a VBA If statement. I would select the row and column to be checked and then use the If statement to determine one of two actions to be done. I have tried using the .value with True, False, Y, T, 0, -1, F, and N for the .value being equal to but none of them work. Maybe .value is not the proper value to test? In Access you can test for true or false. There is obviously something that I am totally missing. Any pointers gladly accepted. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Can you define Yes/No box. Are you using check boxes, option buttons, drop
down combo boxes or data validaton lists? If it is anything other than the data validation list did you get the object from the Forms Toolbar of the Control Toolbox? -- HTH... Jim Thomlinson "vtj" wrote: I'm new to Excel programing - have some Access programming. I have a column that has yes/no boxes in Excel. Is there a way to test the entry to see if it is yes or no? I'm thinking about a VBA If statement. I would select the row and column to be checked and then use the If statement to determine one of two actions to be done. I have tried using the .value with True, False, Y, T, 0, -1, F, and N for the .value being equal to but none of them work. Maybe .value is not the proper value to test? In Access you can test for true or false. There is obviously something that I am totally missing. Any pointers gladly accepted. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
It is check box form control from the insert tab. I am trying to test the
value or condition of the box. "Jim Thomlinson" wrote: Can you define Yes/No box. Are you using check boxes, option buttons, drop down combo boxes or data validaton lists? If it is anything other than the data validation list did you get the object from the Forms Toolbar of the Control Toolbox? -- HTH... Jim Thomlinson "vtj" wrote: I'm new to Excel programing - have some Access programming. I have a column that has yes/no boxes in Excel. Is there a way to test the entry to see if it is yes or no? I'm thinking about a VBA If statement. I would select the row and column to be checked and then use the If statement to determine one of two actions to be done. I have tried using the .value with True, False, Y, T, 0, -1, F, and N for the .value being equal to but none of them work. Maybe .value is not the proper value to test? In Access you can test for true or false. There is obviously something that I am totally missing. Any pointers gladly accepted. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
For a checkbox from the Control Tool Box:
Sub TF() MsgBox ActiveSheet.Checkbox1.Value 'Reurns True/False End Sub For a checkbox from the Forms tool bar: 'This returns numerical values of -4126 for False and 1 for True Sub Vlu() MsgBox ActiveSheet.DrawingObjects("Check Box 1").Value End Sub "vtj" wrote: It is check box form control from the insert tab. I am trying to test the value or condition of the box. "Jim Thomlinson" wrote: Can you define Yes/No box. Are you using check boxes, option buttons, drop down combo boxes or data validaton lists? If it is anything other than the data validation list did you get the object from the Forms Toolbar of the Control Toolbox? -- HTH... Jim Thomlinson "vtj" wrote: I'm new to Excel programing - have some Access programming. I have a column that has yes/no boxes in Excel. Is there a way to test the entry to see if it is yes or no? I'm thinking about a VBA If statement. I would select the row and column to be checked and then use the If statement to determine one of two actions to be done. I have tried using the .value with True, False, Y, T, 0, -1, F, and N for the .value being equal to but none of them work. Maybe .value is not the proper value to test? In Access you can test for true or false. There is obviously something that I am totally missing. Any pointers gladly accepted. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can you help test our Excel test? | Excel Discussion (Misc queries) | |||
Calculate mean of test scores from rows of test answers | Excel Discussion (Misc queries) | |||
Test | Excel Discussion (Misc queries) | |||
test..where are my messages..test | New Users to Excel | |||
test | Excel Programming |