Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADODB connection string on sharepoint

Status
Not open for further replies.

vladk

Programmer
May 1, 2001
991
US
Hi,

I have some VBA code inside Excel.

This is the piece of code that does work on the network, but not on the sharepoint:

Set ioobjConn = New ADODB.Connection
Set ioobjCmnd = New ADODB.Command

Dim strCnctn As String

strCnctn = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & ThisWorkbook.FullName & ";" & _
"Extended Properties=""Excel 8.0;HDR=No"";"

With ioobjConn
.ConnectionString = strCnctn
.CursorLocation = ADODB.adUseClient
.Open
End With


The problem is ThisWorkbook.FullName

On sharepoint it is some http:\..... path, and ADODB connection object dooes not like it. On hard drive it works well...

Can anybody help me?

Thank you!!!

Vlad
 
PatrickIRL,

Thank you for the answer, I will need to try it somehow...

Thank you again!

Vlad
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top