Expected: end of statement Error when using Microsoft.ACE.OLEDB.12.0
I am using Excel 2010 on Windows 7. My objective is to retrieve data from an unopened workbook into the active workbook. I keep getting the message "Compile error: Expected: end of statement". that highlights ".12" right of the "Provider=Microsoft.ACE.OLEDB" part. The code I am using is -