Results 1 to 4 of 4

Thread: ADO and Excel???

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2000
    Posts
    48

    Question

    Does anyone know how to use ADO to connect to an 97/95 Excel file with password. Please post some code. Thanks!

  2. #2
    Lively Member quadoc's Avatar
    Join Date
    Jan 1999
    Location
    Ga, USA
    Posts
    83
    Help! Help! Help!
    VB6(SP4), QB4.5, PDS7.0, IBM-U2

  3. #3
    Lively Member quadoc's Avatar
    Join Date
    Jan 1999
    Location
    Ga, USA
    Posts
    83
    Try this code:

    Dim ax As ADOX.Catalog
    Dim cn As ADODB.Connection
    Dim rs As Recordset

    Dim i As Long
    Dim j As Integer

    Dim strTemp As String

    Dim tbl As ADOX.Table

    Set cn = New Connection
    Set ax = New Catalog

    'open connection
    cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Zip\ADO\Xls2Mdb\004.xls;Extended Properties=Excel 8.0;password=XXXX"
    VB6(SP4), QB4.5, PDS7.0, IBM-U2

  4. #4

    Thread Starter
    Member
    Join Date
    Apr 2000
    Posts
    48
    I tried the code, but getting error can not decrypt file.
    Any other idea? Anyone?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width