Axis.MajorTickMark 屬性 (Excel)Axis.MajorTickMark property (Excel)

會傳回或設定指定之座標軸的主要刻度類型。Returns or sets the type of major tick mark for the specified axis. 可讀寫的 XlTickMarkRead/write XlTickMark.

語法Syntax

運算式MajorTickMarkexpression.MajorTickMark

_運算式_代表**Axis** 物件的變數。expression A variable that represents an Axis object.

註解Remarks

XlTickMark可以為下列其中一個**XlTickMark** 常數。XlTickMark can be one of the XlTickMark constants.

範例Example

本範例會將座標軸外 Chart1 上的主要刻度標記數值座標軸。This example sets the major tick marks for the value axis on Chart1 to be outside the axis.

Charts("Chart1").Axes(xlValue).MajorTickMark = xlTickMarkOutside

支援和意見反應Support and feedback

有關於 Office VBA 或這份文件的問題或意見反應嗎?Have questions or feedback about Office VBA or this documentation? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.