Cell.ResultFromInt Property
Visio Automation Reference |
Sets the value of a cell to an integer value. Read/write.
Version Information
Version Added: Visio 4.5
Syntax
expression.ResultFromInt(UnitsNameOrCode)
expression A variable that represents a Cell object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
UnitsNameOrCode | Required | Variant | The units to use when setting the cell's value. |
Return Value
Long
Remarks
Setting the ResultFromInt property is similar to setting a cell's Result property. The difference is that the ResultFromInt property accepts an integer for the value of the cell, whereas the Result property accepts a floating point number.
You can specify UnitsNameOrCode as an integer or a string value. If the string is invalid, an error is generated. For example, the following statements all set UnitsNameOrCode to inches.
Cell.ResultFromInt(visInches) = newValue
Cell.ResultFromInt(65) = newValue
Cell.ResultFromInt("in") = newValue where "in" can also be any of the alternate strings representing inches, such as "inch", "in.", or "intCounter".
For a complete list of valid unit strings along with their corresponding Automation constants (integer values), see About Units of Measure.
Automation constants for representing units are declared by the Visio type library in member VisUnitCodes.
If the cell's formula is protected with a GUARD function, use the ResultFromIntForce property.
See Also