I am trying to write a code to display a msgbox when the value of one cell is greater than they value of another. For example, if (O4) is greater than (P4) or (L4) then the msgbox will appear. If either (P4) or (L4) are greater or equal to (O4) then NO msgbox will appear. Also, I need this code to apply to each row separately, however, I need a code for about 30 rows. In other words it would look something like:
if (O4) is greater than (P4) or (L4) then the msgbox will appear
if (O6) is greater than (P6) or (L6) then the msgbox will appear
if (O8) is greater than (P8) or (L8) then the msgbox will appear
if (O10) is greater than (P10) or (L10) then the msgbox will appear...ect.
Any help would be greatly appreciated.
if (O4) is greater than (P4) or (L4) then the msgbox will appear
if (O6) is greater than (P6) or (L6) then the msgbox will appear
if (O8) is greater than (P8) or (L8) then the msgbox will appear
if (O10) is greater than (P10) or (L10) then the msgbox will appear...ect.
Any help would be greatly appreciated.