April 22, 2022
November 8, 2013
NOT returns the opposite of a logical condition.
Simply put, if your condition evaluates to TRUE, NOT TRUE will convert true to false.
Assuming that in cell A1 you have the value 45 and you want to perform an action when that cell is 45:
If Not Cells(1,1).Value45 then ' if A1 is not greater or smaller than 45
Will return the same as:
If Cells(1,1).Value = 45 then ' if A1 equals 45