Creator Property [Visio 2003 SDK Documentation]

Gets or sets the value of a document's author—one of the document's properties.

strRet = object**.Creator**

object**.Creator** = stringExpression

strRet     String. The current string that names the author.

object     Required. An expression that returns a Document object.

stringExpression     Required String. The new string that names the author.

Version added

2.0

Remarks

Setting the Creator property is equivalent to entering information in the Author box in the Properties dialog box.

Security  Use this feature with caution. Sensitive or confidential information could be revealed to other users.

Example

This Microsoft Visual Basic for Applications (VBA) macro shows how to use the Creator property to document the author of a drawing. It adds a Document object to the Documents collection and sets the Document object's Creator property as well as other document properties.

Before running this macro, substitute your own values for the items in italics in the following code. To verify that these properties have been set, open the Properties dialog box (File menu).

Public Sub Creator_Example()
   
    Dim vsoDocument As Visio.Document 

    Set vsoDocument = Documents.Add("") 

    'Set the properties of the document. 
    vsoDocument.Title = "document title" 
    vsoDocument.Creator = "author name" 
    vsoDocument.Description = "document description" 
    vsoDocument.Keywords = "keyword1, keyword2, keyword3" 
    vsoDocument.Subject = "document subject" 
    vsoDocument.Manager = "manager name" 
    vsoDocument.Category = "document category" 

End Sub

Applies to | Document object

See Also | Category property | Company property | Description property | HyperlinkBase property | Keywords property | Manager property | Subject property | Title property