SpreadsheetLauncher.EnsureImport Method

Applies to: SharePoint Foundation 2010

Verifies that the control that is used for import and export of contacts is present and registered.

expression.EnsureImport()

Parameters

expression

An expression that returns a SpreadsheetLauncher Control object.

Example

The following example creates a SpreadsheetLauncher object and verifies its presence and registration. For a complete example that implements this code block, see Importing Contacts Using the Spreadsheet Launcher Control.

Set objEnsureImport = CreateObject("SharePoint.SpreadsheetLauncher.2")

If IsObject(objEnsureImport) Then
   objEnsureImport.EnsureImport()
End If