Visual Basic connect to Excel file

In order ro connect the Excel file will I need Excel installed on my computer.
See code below.

Private m_oXlsTests As ADODB.Connection
Private m_oRdsTest As ADODB.Connection

   Set m_oXlsTests = New ADODB.Connection
    With m_oXlsTests
        .Provider = "Microsoft.Jet.OLEDB.4.0"
        .Properties("Extended Properties") = "Excel 8.0"
        strFileName = App.path & "\Tests.xls"
        .Open strFileName
    End With
Who is Participating?
shorvathConnect With a Mentor Commented:
You do not require Excel to be installed on a system in order to use ADO to read and write data in Excel workbooks.

For a detailed article using VB6 ADO and Excel see this link:
Rory ArchibaldCommented:
No, that should not require Excel.
IdaracAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.