VBA: Single line if statement with multiple actions : <p>I really should be able to google this, but I can't find what I wanna know about.</p>

<p>I want to check if a file exists. If not, a MessageBox should pop up and VBA should exit the sub.</p>

<pre><code>If Dir("C:\file.txt", vbDirectory) = "" Then 
    MsgBox "File doesn't exist"
    Exit Sub
End If
</code></pre>

<p>It works, I just wanna know if you can you do this in a single line statement? Does VBA allow this when more than one thing is supposed to happen (like it is the case here)? This code doesn't work (syntax error): </p>

<pre><code>If Dir("C:\file.txt", vbDirectory) = "" Then  MsgBox "File doesn't exist" And Exit Sub
</code></pre>
