VBA Newbie needs help in extracting data from sharepoint and export it to Excel

mavicbenedicto

New Member
Joined
Jun 28, 2012
Messages
1
Hi,
I am a newbie to VBA. I am creating a Macro that will help in checking-out and checking-in of files to a sharepoint. Here's how the program should go.
1. Open Microsoft Excel New Workbook.
2. List document filenames (*.doc) in Column A1 of the active worksheet
3. Let's say I have 10 documents listed in my spreadsheet. The macro would perform a loop into the list of filename and look into the sharepoint document library with columns Document Title, Document Num and Check Out To. There are thousand of documents in it.
4. The macro should check if it is existing and if it is available for check-out.
5. If the document was checked-out by anybody, the macro should be able to get the Check-out To (sharepoint User name) column and record it to the worksheet (e.g. B1)
6. If the document is available for check-out, the macro will check-out the document and download it to a specific folder.
7. The macro would save the spreadsheet as a report for document status.

I am able to distingush if the document is CanCheckOut. My big problem now is how can I get the value of Check-out To column from sharepoint to be able to write it on the spreadsheet for reporting purposes.

I would really appreciate if you could give me some help.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Forum statistics

Threads
1,215,945
Messages
6,127,856
Members
449,411
Latest member
adunn_23

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