Direct Connection to SharePoint Table, not navigate

steveapa

New Member
Joined
Jan 15, 2014
Messages
7
Hi All.
It seems like when you connect to a sharepoint list in Excel or Power BI, all lists are downloaded and then you navigate to the list you want. I would like to connect directly to one list... My excel vba ado connection that work great and is fast:
cn.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;WSS;IMEX=0;RetrieveIds=Yes;DATABASE=https://teams.XXXXXXX/sites/XXXXXX/;LIST={xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}"

I found that there is an M Function: OleDb.Query command, but how do I use the connect string above with this command??

Something like I use to connect to Denodo: The driver name is the ODBC connection name as a variable based on 32 or 64 bit connection
let
Source = Odbc.Query("dsn=" & #"Denodo ODBC Driver" , "

select
tep_project_snapshots.project_number,
tep_projects.project_name,
tep_project
...
Or Like I connect to Oracle
let
Source = Odbc.Query("dsn=" & #"TED Connection (ADW)","
select
REV.DISPLAY_PROGRAM_NUMBER ""RTS#.REV"",
REV.PROGRAM_NM,
REV.PROGRAM_DESC,
REV.PROGRAM_STATUS_DESC,
REV.CUST_NAME,

Thanks
Steve
Harrisburg, PA
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Forum statistics

Threads
1,225,605
Messages
6,185,949
Members
453,333
Latest member
BioCoder84

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top