指定出現在使用者介面中的 ValidationRule 物件描述。 讀取/寫入。
語法
運算式。描述
運算式 代表 ValidationRule 物件的變數。
傳回值
字串
註解
您不能將 Description 屬性設定為超過 255 個字元的值。
範例
下列 VBA (Visual Basic for Applications) 範例示範如何使用 Description 屬性,針對名為 “Unglued2DShape” 的驗證規則,設定在使用者介面中顯示的描述。
Set vsoValidationRule = vsoValidationRuleSet.Rules.Add("Unglued2DShape")
vsoValidationRule.Description = "This 2-dimensional shape is not connected to any other shape."
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。