I followed this site to get me started on my program, here
When I add the reference and declare my variables:
Imports Excel = Microsoft.Office.Interop.Excel
Class XCel
Dim xlApp As New Excel.Application
Dim xlWorkBook As Excel.Workbook
Dim xlWorkSheet As Excel.Worksheet
End Class
I get an ambiguity error, " 'Application' is ambiguous in the namespace 'Microsoft.Office.Interop.Excel' "
I've read a few pages saying to remove the reference then re-add it and updating the PIAs but none have helped.
Is there a simpler way to open an Excel? Something I'm missing in my code/project to get it to work?