SetCustomToolbars method

SetCustomToolbars method

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

See also         Example         Applies to

Replaces the current built-in or custom toolbars of an application or document.

Version added

4.0

Syntax

        
          object.SetCustomToolbarsUIObject
      

object

Required. An expression that returns an Application or Document object to receive the custom toolbars.

UIObject

Required. An expression that returns a UIObject object that represents the new custom toolbars.

Remarks

If the UIObject object was created in a separate process by using the CreateObject procedure instead of getting the appropriate property of an Application or Document object, the SetCustomToolbars method returns an error.