Your code will stop at

Code:
CommonDialog1.ShowOpen
until the user clicks Open or Cancel. So:

Code:
CommonDialog1.ShowOpen
Msgbox "selected"
The message box will come up after the user has click Open or Cancel.

Sunny