If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Connect to a Excel File using ADO

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-30-04, 13:05
mmotizuki mmotizuki is offline
Registered User
 
Join Date: Apr 2004
Posts: 7
Unhappy Connect to a Excel File using ADO

How can I connect to an Excel file as a database using the ADO connection? The code below connect to an Access file. Do I have only to change the provider? What is the provider to an Excel file?

Set ConexaoAccess = New ADODB.Connection

With ConexaoAccess
.Provider = "Microsoft.Jet.OLEDB.4.0"
.Open ArquivoAccess
End With
Reply With Quote
  #2 (permalink)  
Old 07-02-04, 11:02
DavidCoutts DavidCoutts is offline
Registered User
 
Join Date: Jan 2004
Location: Aberdeen, Scotland
Posts: 1,067
Here is a list of connection strings Excel is listed in there

http://www.erlandsendata.no/english...badacconnstring
HTH

David
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On