3

I’m trying to write a macro to connect to an https sharepoint directory and read the list of files contained within the directory (so that I can parse the filenames and then open the appropriate one and read some data from it).

So far I’ve tried:

Has anyone had success with this on a secure https sharepoint directory??

Community
  • 1
  • 1
Aeonaut
  • 1,267
  • 3
  • 14
  • 18

2 Answers2

0

Sharepoint exposes webservices. You can use these to iterate through your libraries.

http://msdn.microsoft.com/en-us/library/ms479390(v=office.12).aspx

Sharepoint 2010 also provides the managed Client Object Model.

This will do what you want: http://msdn.microsoft.com/en-us/library/aa159897(v=office.11).aspx

Karel
  • 2,112
  • 1
  • 15
  • 25
0

If the files you want are in a document library, you could use WebDAV to get access to them via something like: \sp.example.com\sites\thesite\doclib\foldername

Mark Mascolino
  • 2,227
  • 1
  • 15
  • 19