Suppose you have two boolean functions.
If func1 = true or func2 = true Then MsgBox("Success")
Well, if func1 is true, the whole thing is true, so there is no need to evaluate func2. To evaluate func2, in this case, wastes unecesary time. In VB.Net you can use OrElse instead of OR:
If func1 = true OrElse func2 = true Then MsgBox("Success")
OrElse is efficient. It doesn't evaluate func2 unless necessary.
Does VBA have something similar?
If func1 = true or func2 = true Then MsgBox("Success")
Well, if func1 is true, the whole thing is true, so there is no need to evaluate func2. To evaluate func2, in this case, wastes unecesary time. In VB.Net you can use OrElse instead of OR:
If func1 = true OrElse func2 = true Then MsgBox("Success")
OrElse is efficient. It doesn't evaluate func2 unless necessary.
Does VBA have something similar?