Creator Property
Returns a 32-bit integer that indicates the application in which the specified object was created. For example, if the object was created in Microsoft Word, this property returns 1297307460, which represents the string "MSWD"; in Microsoft Excel, this property returns 1480803660. This value can also be represented by the constant wdCreatorCode in Word, or xlCreatorCode in Excel. Read-only Long.
expression.Creator
*expression * Required. An expression that returns one of the above objects.
Remarks
The Creator property was primarily designed to be used on the Macintosh, where each application has a four-character creator code. For example, Microsoft Word has the creator code MSWD. For additional information about this property, consult the language reference Help included with Microsoft Office Macintosh Edition.
The Creator property always returns the numeric identifier for the active application, just as the Application property always returns the name of the active applicatin in string form. Used the CreatedBy property of the SharedWorkspaceFile, SharedWorkspaceFolder, SharedWorkspaceLink, and SharedWorkspaceTask objects to return the name of the individual who created those objects. Use document properties to return information about the authors of Office documents.
Example
This example displays a message about the creator of myObject
.
Set myObject = ActiveDocument
If myObject.Creator = wdCreatorCode Then
MsgBox "This is a Microsoft Word object"
Else
MsgBox "This is not a Microsoft Word object"
End If
Applies to | AnswerWizard Object | AnswerWizardFiles Collection Object | Assistant Object | Balloon Object | BalloonCheckBox Object | BalloonCheckBoxes Collection Object | BalloonLabel Object | BalloonLabels Collection Object | COMAddIn Object | COMAddIns Collection Object | CommandBar Object | CommandBarButton Object | CommandBarComboBox Object | CommandBarControl Object | CommandBarControls Collection Object | CommandBarPopup Object | CommandBars Collection Object | DocumentLibraryVersion Object | DocumentLibraryVersions Collection | DocumentProperties Collection Object | DocumentProperty Object | FileDialog Object | FileDialogFilter Object | FileDialogFilters Collection | FileDialogSelectedItems Collection | FileSearch Object | FileTypes Collection | FoundFiles Object | HTMLProject Object | HTMLProjectItem Object | HTMLProjectItems Collection | LanguageSettings Object | NewFile Object | ODSOColumn Object | ODSOColumns Object | ODSOFilter Object | ODSOFilters Object | Permission Object | PropertyTest Object | PropertyTests Collection Object | ScopeFolder Object | ScopeFolders Collection | Script Object | Scripts Collection Object | SearchFolders Collection | SearchScope Object | SearchScopes Collection | SharedWorkspace Object | SharedWorkspaceFile Object | SharedWorkspaceFiles Collection | SharedWorkspaceFolder Object | SharedWorkspaceFolders Collection | SharedWorkspaceLink Object | SharedWorkspaceLinks Collection | SharedWorkspaceMember Object | SharedWorkspaceMembers Collection | SharedWorkspaceTask Object | SharedWorkspaceTasks Collection | Signature Object | SignatureSet Collection | SmartDocument Object | Sync Object | UserPermission Object | WebPageFont Object | WebPageFonts Collection Object