VBA get information from SharePoint list

Sharpefiction

New Member
Joined
Sep 29, 2010
Messages
33
Hi all,
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p> </o:p>
I need some help and I’m struggling to find an existing solution, though I know there must be one out there…
<o:p> </o:p>
Within VBA I need to get the data from a SharePoint list and display that data within a spreadsheet. I realise I can do the ‘export to spreadsheet’ function within SharePoint, however I need (prefer) to do it via coding, as ultimately I want to search through the data fields within the list and then if they contain the right details it pulls those details from the list and stores them within excel.
<o:p> </o:p>
For example:
<o:p> </o:p>
Site:<o:p></o:p>
http://examplesites/examplefolder/lists/examplelist/
<o:p> </o:p>
Item fields:<o:p></o:p>
FirstName
Surname
EmailAddress
<o:p> </o:p>
In summary, I need:
<o:p> </o:p>
· VBA code to link to a SharePoint list from excel
· VBA code to search for a specific field within that list (e.g. FirstName)
<o:p> </o:p>
Again, my apologies if this code exists but I couldn’t seem to find it; hopefully the above request is simple enough to answer.
<o:p> </o:p>
Thanks in advance
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,215,793
Messages
6,126,936
Members
449,349
Latest member
Omer Lutfu Neziroglu

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