GetOpenFile window

  • Hi guys, I have this line code to let an user choose and open multiples files on excel, but if the user don't choose anything or close the window the code give me an error en el next line to that one, someone know how can I do to delete that error?

    Thank you in advance

    File_Name = Application.GetOpenFilename("Excel Files (*.xl*),*.xl*", , "Select Excel Files To Consolidate", , True)
  • A Gentleman that goes by ZVI suggested this: (Change as required)

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!