Set mychart=Worksheets("Sheet 1").ChartObjects("图表 1")
mychart.Chart.ChartArea.Fill.PresetTextTured(msoFillTextured)
mychart.Chart.PlotArea.ClearFormats
mychart.Chart.PlotArea.Interior.ColorIndex=0
本文介绍如何使用VBA代码修改Excel中Sheet1内的图表1样式,包括更改图表区域填充效果为预设纹理,并清除绘图区原有格式,设置其内部颜色索引为0。
Set mychart=Worksheets("Sheet 1").ChartObjects("图表 1")
mychart.Chart.ChartArea.Fill.PresetTextTured(msoFillTextured)
mychart.Chart.PlotArea.ClearFormats
mychart.Chart.PlotArea.Interior.ColorIndex=0

被折叠的 条评论
为什么被折叠?