How to do multiple conditions for single If statement August 29, 2023 by Tarik Use the ‘And’ keyword for a logical and. Like this: If Not ((filename = testFileName) And (fileName <> "")) Then