Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hello all,
i need to know how to program the value of a cell. meaning based on the value of a cell i want another cell to do somthing. Example: if the value of cell c2 = "yes" then c3 equals "5" Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Simply type in the cell C3 :
=if(C2="yes",5,10) HTH Carim |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
i need to do this programatically, the whole story is this, i have 2
checkboxes on the same row. when i check the 1st box i have some conditional formating that happens. but when i check the 2nd box, i have the orginal cf removed and a new cf put into place. i do this by playing with the value of the 1st checkbox when the 2nd checkbox is clicked. my problem is if i only click the 2nd check box and then uncheck it, the 1st cf is enacted becasue the 1st checkbox value changes from false to true. i need to a check put into place when i unclick the 2nd checkbox to see if the value of the 1st checkbox should or should not be true. the check would be if cell D2 contains information then the value of the 1st checkbox should be true otherwise it should be false. example if value of cell d2 is true then checkbox1.value = true else checkbox1.value = false "Carim" wrote: Simply type in the cell C3 : =if(C2="yes",5,10) HTH Carim |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Why not use optionbuttons? When you click one the other toggles as well.
-- HTH Bob Phillips (remove nothere from email address if mailing direct) "DanDavis" wrote in message ... i need to do this programatically, the whole story is this, i have 2 checkboxes on the same row. when i check the 1st box i have some conditional formating that happens. but when i check the 2nd box, i have the orginal cf removed and a new cf put into place. i do this by playing with the value of the 1st checkbox when the 2nd checkbox is clicked. my problem is if i only click the 2nd check box and then uncheck it, the 1st cf is enacted becasue the 1st checkbox value changes from false to true. i need to a check put into place when i unclick the 2nd checkbox to see if the value of the 1st checkbox should or should not be true. the check would be if cell D2 contains information then the value of the 1st checkbox should be true otherwise it should be false. example if value of cell d2 is true then checkbox1.value = true else checkbox1.value = false "Carim" wrote: Simply type in the cell C3 : =if(C2="yes",5,10) HTH Carim |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
i have 250 rows of info and each row has 2 checkboxes. i can't use option
buttons. i need to know how to refer to a cell in vb "Bob Phillips" wrote: Why not use optionbuttons? When you click one the other toggles as well. -- HTH Bob Phillips (remove nothere from email address if mailing direct) "DanDavis" wrote in message ... i need to do this programatically, the whole story is this, i have 2 checkboxes on the same row. when i check the 1st box i have some conditional formating that happens. but when i check the 2nd box, i have the orginal cf removed and a new cf put into place. i do this by playing with the value of the 1st checkbox when the 2nd checkbox is clicked. my problem is if i only click the 2nd check box and then uncheck it, the 1st cf is enacted becasue the 1st checkbox value changes from false to true. i need to a check put into place when i unclick the 2nd checkbox to see if the value of the 1st checkbox should or should not be true. the check would be if cell D2 contains information then the value of the 1st checkbox should be true otherwise it should be false. example if value of cell d2 is true then checkbox1.value = true else checkbox1.value = false "Carim" wrote: Simply type in the cell C3 : =if(C2="yes",5,10) HTH Carim |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You can, you can group them
-- HTH Bob Phillips (remove nothere from email address if mailing direct) "DanDavis" wrote in message ... i have 250 rows of info and each row has 2 checkboxes. i can't use option buttons. i need to know how to refer to a cell in vb "Bob Phillips" wrote: Why not use optionbuttons? When you click one the other toggles as well. -- HTH Bob Phillips (remove nothere from email address if mailing direct) "DanDavis" wrote in message ... i need to do this programatically, the whole story is this, i have 2 checkboxes on the same row. when i check the 1st box i have some conditional formating that happens. but when i check the 2nd box, i have the orginal cf removed and a new cf put into place. i do this by playing with the value of the 1st checkbox when the 2nd checkbox is clicked. my problem is if i only click the 2nd check box and then uncheck it, the 1st cf is enacted becasue the 1st checkbox value changes from false to true. i need to a check put into place when i unclick the 2nd checkbox to see if the value of the 1st checkbox should or should not be true. the check would be if cell D2 contains information then the value of the 1st checkbox should be true otherwise it should be false. example if value of cell d2 is true then checkbox1.value = true else checkbox1.value = false "Carim" wrote: Simply type in the cell C3 : =if(C2="yes",5,10) HTH Carim |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing Options | Excel Discussion (Misc queries) | |||
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing | Excel Discussion (Misc queries) | |||
Populate a cell if values in cell 1 and cell 2 match cell 3 and 4 | Excel Worksheet Functions | |||
How to create/run "cell A equals Cell B put Cell C info in Cell D | Excel Discussion (Misc queries) | |||
data validation to restrict input in cell based on value of cell above that cell | Excel Programming |