Value Property

Applies To

Property object.

Description

Returns or sets a Variant specifying the value of the property. Read/write.

Remarks

Because the Value property returns a Variant, you can access any property. To access a list, use the IndexedValue property.

If the property that the Property object represents is read/write, the Value property is read/write. If the property is read-only, attempting to set the Value property causes an error. If the property is write-only, attempting to return the Value property causes an error.

The Value property is the default property for the Property object.

See Also

IndexedValue property, Name property, Object property, Type property.

Example

The following example uses the Value property to return the value of the specified property of a member of the VBComponents collection.

Debug.Print Application.VBE.ActiveVBProject.VBComponents(1).Properties( _
    "AcceptLabelsInFormulas").Value