_Application.SharePointVersion method

Office 2013 and later

Returns the version number of SharePoint Foundation instances running at site for the specified URL.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

int SharePointVersion(
	string bstrUrl
)

Parameters

bstrUrl
Type: System.String

The URL of site to check.

Return value

Type: System.Int32
Integer
Show: