Axis.HasDisplayUnitLabel 屬性 (Excel)
True 是表示 如果 DisplayUnit 或 DisplayUnitCustom 屬性所指定的標籤顯示在特定座標軸上。 預設值為 True。 可讀寫的 Boolean。
語法
運算式。HasDisplayUnitLabel
表達 代表 Axis 物件的變數。
範例
本範例會將 Chart1 上數值座標軸上的單位設為 500 的遞增,但會隱藏單位標籤。
With Charts("Chart1").Axes(xlValue)
.DisplayUnit = xlCustom
.DisplayUnitCustom = 500
.AxisTitle.Caption = "Rebate Amounts"
.HasDisplayUnitLabel = False
End With
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。