You have a line :

Code:
CommonDialog1.CancelError = False
which you can add in your CommandButton1_Click() part, or you an do a..

Code:
If CommonDialog1.Cancel = True Then
   'code to cancel here
End if
statement. Note I have tried this before posting this time!

Alex Read