1
我認爲我的疑問很簡單。我試圖從VBA Excel中創建一個告知貨幣價值的餅圖。我只能讓它們顯示爲原始數字(例如不包含$,R $)。餅圖 - 顯示貨幣值 - Excel VBA
這裏是我的代碼:
With grafico_usp
.Name = "Metrics USP - Quantidade"
.ChartType = xlPieExploded
.SetSourceData Source:=rng
.ClearToMatchStyle
.ChartStyle = 304
.HasTitle = True
.HasLegend = True
.Legend.Format.TextFrame2.TextRange.Font.Size = 13
.Legend.Height = 200
.Legend.Position = xlLegendPositionRight
.ChartTitle.Text = "Estatística Número de Cursos Ofertados - USP"
.ApplyDataLabels (xlDataLabelsShowValue)
End With
我的電池也爲貨幣格式,但單位沒有出現在餅圖英寸 感謝您的時間!