返回或設(shè)置指定對象的格式代碼,此格式代碼是以用戶語言表示的一個文本串。Variant 類型,可讀寫。
說明
Format 函數(shù)與 NumberFormat 和 NumberFormatLocal 屬性所使用的格式代碼串不同。
示例
本示例以用戶語言顯示圖表第一系列中數(shù)據(jù)標(biāo)簽的數(shù)字格式。
MsgBox "The number format for the first series is " & _
myChart.SeriesCollection(1).DataLabels.NumberFormatLocal