Downlad Sharepoint Document Library's Specific View only using Excel VBA

krishnaoptif

Board Regular
Joined
Sep 17, 2010
Messages
140
Hi Experts,

I want to download SharePoint 2010 document library's specific view only using Excel VBA where I have few filtered metadata columns.

May you please help on this
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
I am affraid it is not possible. I might be possible if you open every file but my files are big and it will just take too much time to open every file.
I use the following code to list files in a SharePoint document library app. See below ..
It works very vell and it is fast but there is no way to get the metadata , I have one "Decided Yes/No"

Code:
Public Sub Get_all_files_in_folders(tbl As ListObject, ObjSubFolder As Object, myDir As String)
Dim r As Integer
Dim objFolder As Object
Dim objFile As Object

Dim objDSO As Object
    
    r = 1
    For Each objFile In ObjSubFolder.Files
        If Right(objFile.Name, 5) = ".xlsm" Then
            tbl.DataBodyRange.Cells(r, 2) = Left(objFile.Name, Len(objFile.Name) - 5)
            r = r + 1
        End If
    Next
End Sub
 
Upvote 0

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