Paulsburbon
Registered User.
- Local time
- Today, 15:12
- Joined
- May 3, 2005
- Messages
- 65
I found code on the net for importing Excel to Access. The problem is it is code for the excel spreadsheet. I need it to be executed in access. So the following code in the spreadsheet of:
Dim cn As ADODB.Connection
Set cn = New ADODB.Connection
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0; " & _
"Data Source=C:\FolderName\DatabaseName.mdb;"
What would change for me to connect to an excel spreadsheet. The file would be called spreadsheet with the path of C:\spreadsheet?
Does this make any sense?
Thank you for your time.
Dim cn As ADODB.Connection
Set cn = New ADODB.Connection
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0; " & _
"Data Source=C:\FolderName\DatabaseName.mdb;"
What would change for me to connect to an excel spreadsheet. The file would be called spreadsheet with the path of C:\spreadsheet?
Does this make any sense?
Thank you for your time.