LocationOfComponents Property Example

This example sets the path where Office components are downloaded.

Application.DefaultWebOptions.LocationOfComponents = _
    Application.Path & Application.PathSeparator & "foo"

Send feedback to MSDN.Look here for MSDN Online resources.