CreateToolWindow method

Creates a new Tool window containing the indicated UserDocument object.


object.CreateToolWindow (AddInInst, ProgID, Caption, GuidPosition, DocObj) As Window

The CreateToolWindow method syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
AddInInst Required. An add-in instance variable representing an add-in in the development environment.
ProgID Required. String representing the progID of the UserDocument object.
Caption Required. String containing the window caption.
GuidPosition Required. String containing a unique identifier for the window.
DocObj Required. Object representing a UserDocument object. This object will be set in the call to this function.

See also

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.