Hi guys i have if statement with one AND and two OR it seems not working can you guys check my code. thank you
This is the scenario if A1 is greater than B1 and C1 value is not equal to Withdrawals or Inventory then select petty cash sheet.
This is the scenario if A1 is greater than B1 and C1 value is not equal to Withdrawals or Inventory then select petty cash sheet.
If Range("A1").Value > Range("B1").Value And (Range("C1").Value <> "Withdrawals" Or Range("C1").Value <> "Inventory") Then
Sheets("Petty Cash Data").Select
Else
End If