SharePoint XML list To Excel

Chance1234

New Member
Joined
May 6, 2002
Messages
5
Ive been looking at sharepoint and importing a list via VBA,

I have got as far as

1) getting the UID of the feed and using owssvr.dll to get the XML ie something like

http://xxxxxx/_vti_bin/owssvr.dll?XMLDATA=1&List={DF6233A4-xxxx-45F9-xxxxx-214B79596495}

2) referencing microsfot XML , V5

3) creating a new domdocument

4) load XML and pass the string

and now im stuck

If i use the text property i do get the full file;
I can also pull out First and Lastchild names which returns (surprisE!) xml

I think its the schema being in the file that is throwing me a bit,

If i try use documentelelemnt.childnodes , i cant seem to get down to the nexdt node

if i try use selecting singlenode , again i cant seem to move.

does anyone have any experience of working with sharepoing in VBA ?
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Depending on your version of SharePoint there are easier ways to that import.
Open the list so it is the only thing visible in the window. Click on the Actions tab and select Export to Spreadsheet. It will create a linked view of the list that can be updated simply by right-clicking on the returned data and choosing refresh.
No need to reinvent the wheel
 
Upvote 0

Forum statistics

Threads
1,214,968
Messages
6,122,506
Members
449,089
Latest member
RandomExceller01

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