Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
i have to believe i'm misreading this code, somehow. when
i watch chkboolean.value, it changes to false, as it should, the first time the code is run through. but then when it runs through a second time, this code should NOT get triggered, because now chkboolean.value=false (which it shows, correctly, in the watch window). xxxxxxxxxxxxxxx If chkBoolean.Value = True And _ optCouponsOnly.Value = True Or _ optSchedCoupons.Value = True Then MultiPage1.pgCoupons.Visible = True chkBoolean.Value = False MultiPage1.Value = 1 txtProgID.SetFocus MsgBox "Please also fill in these fields, then press ""Continue""." _ , vbInformation, "Let's see................." Exit Sub chkBoolean.Value = False End If xxxxxxxxxxxxxxx thanks for any assistance. susan |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
duh... forget to say what the PROBLEM is.......
it keeps repeating thru this msgbox & won't actually continue. Susan wrote: i have to believe i'm misreading this code, somehow. when i watch chkboolean.value, it changes to false, as it should, the first time the code is run through. but then when it runs through a second time, this code should NOT get triggered, because now chkboolean.value=false (which it shows, correctly, in the watch window). xxxxxxxxxxxxxxx If chkBoolean.Value = True And _ optCouponsOnly.Value = True Or _ optSchedCoupons.Value = True Then MultiPage1.pgCoupons.Visible = True chkBoolean.Value = False MultiPage1.Value = 1 txtProgID.SetFocus MsgBox "Please also fill in these fields, then press ""Continue""." _ , vbInformation, "Let's see................." Exit Sub chkBoolean.Value = False End If xxxxxxxxxxxxxxx thanks for any assistance. susan |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
from the immediate window:
? false and true or true True ? false and (true or true) False so why struggle. Use parens to make your intent clear. why is it a problem - evaluating from left to right it would look like (false and true) or true (false and true) becomes false so the second evaluation is False or True -- Regards, Tom Ogilvy -- Regards, Tom Ogilvy "Susan" wrote: duh... forget to say what the PROBLEM is....... it keeps repeating thru this msgbox & won't actually continue. Susan wrote: i have to believe i'm misreading this code, somehow. when i watch chkboolean.value, it changes to false, as it should, the first time the code is run through. but then when it runs through a second time, this code should NOT get triggered, because now chkboolean.value=false (which it shows, correctly, in the watch window). xxxxxxxxxxxxxxx If chkBoolean.Value = True And _ optCouponsOnly.Value = True Or _ optSchedCoupons.Value = True Then MultiPage1.pgCoupons.Visible = True chkBoolean.Value = False MultiPage1.Value = 1 txtProgID.SetFocus MsgBox "Please also fill in these fields, then press ""Continue""." _ , vbInformation, "Let's see................." Exit Sub chkBoolean.Value = False End If xxxxxxxxxxxxxxx thanks for any assistance. susan |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
success! thanks.... i didn't know i could use the parentheses to
make the intent clear.......... as far as i could see i had it written correctly but it wouldn't work. xxxxxxxxxxxxxx If chkBoolean.Value = True And _ (optCouponsOnly.Value = True Or _ optSchedCoupons.Value = True) Then MultiPage1.pgCoupons.Visible = True chkBoolean.Value = False MultiPage1.Value = 1 txtProgID.SetFocus MsgBox "Please also fill in these fields, then press ""Continue""." _ , vbInformation, "Let's see................." Exit Sub End If xxxxxxxxxxxxxxxxxx i was throwing "chkBoolean.Value=False"'s everywhere to try to make it work! ha ha thanks again for your kind assistance! susan Tom Ogilvy wrote: from the immediate window: ? false and true or true True ? false and (true or true) False so why struggle. Use parens to make your intent clear. why is it a problem - evaluating from left to right it would look like (false and true) or true (false and true) becomes false so the second evaluation is False or True -- Regards, Tom Ogilvy -- Regards, Tom Ogilvy "Susan" wrote: duh... forget to say what the PROBLEM is....... it keeps repeating thru this msgbox & won't actually continue. Susan wrote: i have to believe i'm misreading this code, somehow. when i watch chkboolean.value, it changes to false, as it should, the first time the code is run through. but then when it runs through a second time, this code should NOT get triggered, because now chkboolean.value=false (which it shows, correctly, in the watch window). xxxxxxxxxxxxxxx If chkBoolean.Value = True And _ optCouponsOnly.Value = True Or _ optSchedCoupons.Value = True Then MultiPage1.pgCoupons.Visible = True chkBoolean.Value = False MultiPage1.Value = 1 txtProgID.SetFocus MsgBox "Please also fill in these fields, then press ""Continue""." _ , vbInformation, "Let's see................." Exit Sub chkBoolean.Value = False End If xxxxxxxxxxxxxxx thanks for any assistance. susan |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
if any of 3 conditions is true, then answer is true | Excel Worksheet Functions | |||
Search for 2 true arguments and return true or false | Excel Discussion (Misc queries) | |||
Function to return True/False if all are validated as True by ISNU | Excel Worksheet Functions | |||
How do I stop Excel from changing the word true to TRUE? | Excel Discussion (Misc queries) | |||
Reverse false and combine with true true value | Excel Worksheet Functions |