title | keywords | f1_keywords | ms.assetid | ms.date | ms.localizationpriority | |
---|---|---|---|---|---|---|
PivotValueCell.Creator property (Excel) |
vbaxl10.chm917074 |
|
85b4c0bf-3654-af39-413e-8c22c00626f3 |
05/07/2019 |
medium |
Returns a 32-bit integer that indicates the application in which the specified object was created. Read-only Long.
expression.Creator
expression A variable that represents a PivotValueCell object.
Because the object was created in Microsoft Excel, this property returns the hexadecimal value, 5843454C, which represents the string XCEL.
XLCREATOR
The following code uses the Creator property to check whether the specified object is an Excel object.
Sub FindCreator()
Dim myObject As Excel.Workbook
Set myObject = ActiveWorkbook
If myObject.Creator = &h5843454c Then
MsgBox "This is a Microsoft Excel object."
Else
MsgBox "This is not a Microsoft Excel object."
End If
End Sub
[!includeSupport and feedback]