excel - If VBA multiple conditions -


i have problem vba code , instructions if, have use multi-conditionig, vba, if check condition 4 true ignores other conditions.

((condition 1) or (condition 2)) , (condition 3 or condition 4)

needs macro accepts specified options:

((true) or (false)) , (true or false)
((true) or (false)) , (true or true)
((false) or (true)) , (true or false)
((false) or (true)) , (true or true)

there real code:

if ((raport_glowny.cells(i, r_delivedate_c).value = cdate(arkusz6.deliverydaysms)) _ , (raport_glowny.cells(i, r_deliverytime_c).value >= cdate(arkusz6.deliveryhoursms.value))) _ or ((raport_glowny.cells(i, r_delivedate_c).value = cdate(arkusz6.deliverydaysms) + 1) _ , (raport_glowny.cells(i, r_deliverytime_c).value < cdate(arkusz6.deliveryhoursms.value))) _ , ((raport_glowny.cells(i, r_deliverytime_c).value > 0) _ or (arkusz6.cbsmsforecast = true)) 

if can grateful


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -