You may also have to download and install 2007 Office System Driver: Data Connectivity Components and make changes in the code as cn.open(“Provider=Microsoft.ACE.OLEDB.12.0;Data Source=” + fileName + “;Extended Properties=‘Excel 12.0 Xml;HDR=No;IMEX=1’”);