Syntax

expression.LocationOfComponents

expression A variable that represents a DefaultWebOptions object.

Remarks

Office Web components are automatically downloaded with the specified Web page if the property is is set to True, the components are not already installed, the path is valid and points to a location that contains the necessary components, and the user has a valid Microsoft Office license.

Example

This example sets the path to the location from which users can download Microsoft Office Web components.

Visual Basic for Applications
Application.DefaultWebOptions.DownloadComponents = True Application.DefaultWebOptions.LocationOfComponents = _ Application.Path & Application.PathSeparator & "foo"

See also: