Download an Excel file from SharePoint

Posted by Naimishforu under VB.NET category on | Points: 40 | Views : 5794

Sub DownloadExcelDocumentFromSP(ByVal documentURL As String, ByVal savePathWithFileName As String)
Dim objExl As New Excel.Application()
With objExl
.DisplayAlerts = False
.Visible = False
With .Workbooks.Open(documentURL)
End With
End With
If objExl IsNot Nothing Then
End If
objExl = Nothing
End Sub

Comments or Responses

Login to post response