VB Code:
  1. Private Sub cmdUpload_Click()
  2.     With CommonDialog1
  3.         .FileName = "*.xls"
  4.         .Filter = "*.xls"
  5.         .ShowOpen
  6.         uploadfile = .FileName
  7.     End With
  8.     Save_BillingStatus
  9. End Sub

how do i code if i try to open the dialogbox then i cancel the button?? it must not go to the Save_billingstatus function.. anyhelp?