String property. Gets or sets a string containing the name of the author of the document/library.
Applies to: Document object, Library object
[[Let] authorRet =] object.Author [Let] object.Author = authorSet |
The Author property syntax has these parts:
Part | Description |
object | Required. An expression that returns an object from the Applies to list. |
authorRet | Optional. A String type variable. |
authorSet | Required. An expression that returns a String value. The string to be set as the name of the author of the document. |
For a new document the Author property contains an empty string.
Setting the Author property for a document is equivalent to entering information in the Author box in the Document Properties dialog box, tab General (click Document Properties on the File menu). To set Author for a library, use the Properties dialog from the File ->Library menu.
The example below contains a document-level script. It demonstrate how to view the author information for a document by creating a Text object with the "DocAuthor" formula.
Dim shp As Shape ' Declare variables Set shp = thisDoc.ActivePage.DrawRect(100,100,1000,300) ' Draw rectangle shp.Text = "" shp.SetPropertyFormula( "DocAuthor", CDPT_TEXT ) ' Set formula for the Text property shp.RecalcProperty( CDPT_TEXT ) ' Re-calculating the Text property thisDoc.Author = "New Document Author" ' Set new value for the Author property |
See Also |
Company property, Desc property, Subj property, Title property |