I am a strange issue occurring that I can not seem to find the answer to.
Here is snippet of code:
I have ensured that value1 is less than value2, yet each time the code runs I get the message in the message box. Value 1 and Value 2 are defined and given values immediately prior to the If statement. (Can not share rest of code)
Other If statements in the code work as expected but the message in this if statement runs no matter the values of Value1 and Value 2.
Any help here would be appreciated.
Here is snippet of code:
VBA Code:
If value1 > value2 Then
MsgBox(message)
End If
I have ensured that value1 is less than value2, yet each time the code runs I get the message in the message box. Value 1 and Value 2 are defined and given values immediately prior to the If statement. (Can not share rest of code)
Other If statements in the code work as expected but the message in this if statement runs no matter the values of Value1 and Value 2.
Any help here would be appreciated.