Share via


TextFrame2.Creator Property (Office)

Returns a 32-bit integer that indicates the application in which this object was created. Read-only. Long

Version Information

Version Added: Office 2010

Syntax

expression .Creator

expression An expression that returns a TextFrame2 object.

Example

This example displays a message about the creator of an Excel workbook. In this example, the hexadecimal number 5843454C is equivalent to the string XCEL which indicates that this object was created in Excel.

Sub FindCreator() 
 
 Dim myObject As Excel.Workbook 
 Set myObject = ActiveWorkbook 
 If myObject.TextFrame2.Creator = &h5843454c Then 
 MsgBox "This is a Microsoft Excel object." 
 Else 
 MsgBox "This is not a Microsoft Excel object." 
 End If 
 
End Sub 

See Also

Concepts

TextFrame2 Object

TextFrame2 Object Members