I am trying to write a series of IF then statements in VB for Excel. I have tried to use the:
IF [condition] Then
Statement
Else
End If
format without any success. I have three cells (F4, F10, and F14). Each of these cell values are controlled by radio buttons. F4 can have a value of 1, 2, 3, 4, 5, or 6. F10 can have a value of 1 or 2, and F14 can have a value of 1, 2,3,4,5,6, or 7. I want each each statement to depend on the possible combination of the values of these three cells. For example if F4=2, and F10=1 and F14=6 then the formula in cell g22 would be carried out, if F4=1, and F10=1, and F14=1, then the formula in cell g23 would be carried out and so on until all of the possible combinations for F4, F10 , and F14 are accounted for. Your help would be appreciated. Thanks.
John
IF [condition] Then
Statement
Else
End If
format without any success. I have three cells (F4, F10, and F14). Each of these cell values are controlled by radio buttons. F4 can have a value of 1, 2, 3, 4, 5, or 6. F10 can have a value of 1 or 2, and F14 can have a value of 1, 2,3,4,5,6, or 7. I want each each statement to depend on the possible combination of the values of these three cells. For example if F4=2, and F10=1 and F14=6 then the formula in cell g22 would be carried out, if F4=1, and F10=1, and F14=1, then the formula in cell g23 would be carried out and so on until all of the possible combinations for F4, F10 , and F14 are accounted for. Your help would be appreciated. Thanks.
John