OLEObject.Value Function

Used to get or set a value of the object. The parameter is the name of the property to assign a new value to or to get the value.

Syntax
result = OLEObject.Value( PropertyName, [params()], [ByValue] )

Parameters
PropertyName | String
params() | Variant (Optional)
ByValue | Boolean (Optional)

Return Value
Result | Variant

# Notes

The value property can optionally take a list of properties when assigning a value, i.e.,

OLEObject.Value(Name of Property as String, params() as Variant)=value.

If the optional parameter ByValue is True, property assignment is by value.