4259| 5
|
图表的横坐标轴最小最大值可以根据单元格变动吗? |
2学分
最佳答案Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 4 Then
ActiveSheet.ChartObjects("图表 1").Activate
ActiveChart.Axes(xlCategory).MinimumScale = Application.WorksheetFunction.Min([d9:d15])
ActiveChart.Axes(xlCategory).MaximumScale = Application.WorksheetFunction.Max([d9:d15])
End If
End Sub
| ||
发表于 2019-5-21 09:46
|
显示全部楼层
| ||
发表于 2019-5-21 11:40
|
显示全部楼层
| ||
| ||
| ||