Selection.Creator property (Word)
Returns a 32-bit integer that indicates the application in which the specified object was created. Read-only Long.
expression A variable that represents a Selection object.
If the object was created in Microsoft Word, the Creator property returns the hexadecimal number 4D535744, which represents the string "MSWD." This 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.
This value can also be represented by the constant wdCreatorCode.
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.