CommonDialog Cancel button handling in VB6

I am using Common Dialog to open the specified directory and give the user an ability to select the file and import it in.
But if I click the Cancel and don't select any file - it errorws out. I need to know how to handle the Cacel button.