请教: wps vba 如何设置图表折线的粗细
多次尝试都失败了,请各位大侠出手,谢谢了!
'wps 表格 版本9.1.0.4940
Dim oSeries As Series
With ActiveChart
Set oSeries = .SeriesCollection.NewSeries
oSeries.Name = "sbp"
oSeries.ChartType = xlLine
oSeries.Format.Line.ForeColor.ObjectThemeColor = vbRed
oSeries.Format.Line.Weight = xlThick'不起作用
.SeriesCollection(1).Name = "sbp"
.SeriesCollection(1).Smooth = cbSmooth.Value
.SeriesCollection(1).Format.Line.Visible = True
.SeriesCollection(1).Format.Line.Weight = xlThick'不起作用
.SeriesCollection(1).Format.Line.ForeColor.ObjectThemeColor = 255
.SeriesCollection(1).Border.Color = vbRed
.SeriesCollection(1).Border.Weight = xlThick'不起作用
.SeriesCollection(1).Border.LineStyle = xlContinuous
End With
'wps 表格 版本9.1.0.4940
Dim oSeries As Series
With ActiveChart
Set oSeries = .SeriesCollection.NewSeries
oSeries.Name = "sbp"
oSeries.ChartType = xlLine
oSeries.Format.Line.ForeColor.ObjectThemeColor = vbRed
oSeries.Format.Line.Weight = xlThick'不起作用
.SeriesCollection(1).Name = "sbp"
.SeriesCollection(1).Smooth = cbSmooth.Value
.SeriesCollection(1).Format.Line.Visible = True
.SeriesCollection(1).Format.Line.Weight = xlThick'不起作用
.SeriesCollection(1).Format.Line.ForeColor.ObjectThemeColor = 255
.SeriesCollection(1).Border.Color = vbRed
.SeriesCollection(1).Border.Weight = xlThick'不起作用
.SeriesCollection(1).Border.LineStyle = xlContinuous
End With
...全文
相关推荐
WPS表格中设置折线图随数据列自动变化-存钱计划
在WPS表格中,折线图适合用来表示数据随时间的变化情况,例如每月存款额度的变化。操作步骤一般包括选择数据区域、点击插入图表选项、选择折线图类型、调整图表样式和格式以及设置数据源以实现动态更新。
用VBA做大批量图表造成死机的一个原因:
- VBA脚本在运行过程中,如果对每个图表都进行单独处理(例如设置样式、调整大小等),则会在后台创建多个临时对象,进一步加剧内存消耗。
wps表格教程.zip
三、图表制作创建图表是WPS表格的一个重要功能,用户可以将数据转换为直观的图表,如柱状图、折线图、饼图等。通过调整图表类型、系列、数据标签和图例,用户可以定制适合展示数据特性的图表。
Excel图表应用课件.ppt
【图表基本知识】中,Excel图表由多个要素组成:图表区、绘图区、图表标题、数据系列、坐标轴、图例、数据表和三维背景。图表区是图表的整体框架,可以设置边框样式和填充效果。
专题资料(2021-2022年)excel图表培训教案.ppt
Excel图表包含8个主要元素:图表区、绘图区、图表标题、数据系列、坐标轴、图例、数据表和三维背景。这些元素可以自定义以满足不同展示需求。


