Saturday, November 16, 2013

Divide the axis values by 1000 (VBA-Excel)


This code changes the unit of a given axis of a chart to thousand, i.e. divide the units by 1000

Sub Divide_axis_values_by_1000()
    ActiveChart.Axes(xlValue).DisplayUnit = xlThousands
End Sub

No comments: