Private Sub drvLocal_Change() On Error GoTo Skip If drvLocal.Drive = vbNull Then dirLocal.Path = drvLocal.Drive Exit Sub End If Skip: ' Display this error if disk is empty or not in drive MsgBox "Drive not found or empty", vbCritical, "Drive Error" End Sub