OpenFileDialog.Filter
allows you to filter files by their extension. E.g.
openFileDialog.Filter = "Excel files (*.xls, *.xlsx)|*.xls;*.xlsx"
However any file can have any extension, so that doesn't ensure it's an excel file, so when you start your import you'll want to do so in a try-catch block so you can throw a message in the head of the user telling him to give you a correct file.