vba 设置坐标轴

时间:2016-07-11 20:59:54   收藏:0   阅读:2340

1.辅助线虚线

ActiveSheet.ChartObjects("图表1").Activate

ActiveChart.Axes(xlValue).Select

ActiveChart.Axes(xlValue).MajorGridlines.Select

With Selection.Format.Line

  .Visible = msoTrue

  .DashStyle = msoLineDash

End With

 

2.x轴坐标向右

ActiveChart.ChartArea.Select

ActiveChart.Axes(xlCategory).Select

Seletion.MajorTickMark = xlInside

 

3.Y轴坐标向上

Selection.MajortickMark = xlInside

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!