title: Check two empty cells in VBA
body: <p>I have been trying to check if two cells are empty. I know how to check for one cell but I can't get to figure out how to check two separate cells. This is one of the ways I have tried. When I run it, it will only check for F17 but not for F12, if I switch the numbers it will check only for F12. I appreciate any help. Thank you</p>
  
  <pre><code>Sub Button11VerifyFilePathPresent_Click()
  Dim rCell As Range
  
  On Error GoTo ErrorHandle
  Set rCell = Range("F17", "F12")
  
  If IsEmpty(rCell) Then
      MsgBox "Please select the files" ' "Cell " &amp; rCell.Address &amp; " is empty."
  End If
  
  BeforeExit:
  Set rCell = Nothing
  Exit Sub
  ErrorHandle:
  MsgBox Err.Description &amp; " Error in procedure CellCheck."
  Resume BeforeExit
  
  End Sub
  </code></pre>