Subject property

Microsoft Visio Developer Reference

Subject property

       

Gets or sets the value of the Subject field in a document's properties.

Version added

2.0

Syntax

strRet = object.Subject
object.Subject = stringExpression

strRet

String. The current value of the field.

object

Required. An expression that returns a Document object.

stringExpression

Required String. The new value for the field.

Remarks

Setting the Subject property is equivalent to entering information in the Subject box in the Properties dialog box (click Properties on the File menu).