Goes like...
using System.Data.OleDb;
....
string filePath = @"C:\MyExcel.xlsx";
string connectionstring = "provider=Microsoft.ACE.OLEDB.12.0;data source={0};extended properties='Excel 12.0;HDR=YES;'";
connectionstring = connectionstring.Replace("{0}", filePath );
OleDbConnection oConn = new OleDbConnection(connectionstring);
oConn.Open();
...
oConn.Close();