VBA(Excel 2007)如何检测SeriesCollection的填充格式?
如何检测SeriesCollection的填充格式? 我知道如何将其更改为固体> ActiveChart.SeriesCollection(1).Fill.Solid
我知道如何将其更改为 Gradient > ActiveChart.SeriesCollection(1).Fill.TwoColorGradient Style:=msoGradientHorizontal, Variant:=1
但我不知道如何检测当前的填充格式... 你能帮我吗?
谢谢。
how can I detect fill format of SeriesCollection?
I know how to change it to solid > ActiveChart.SeriesCollection(1).Fill.Solid
and I know how to change it to Gradient > ActiveChart.SeriesCollection(1).Fill.TwoColorGradient Style:=msoGradientHorizontal, Variant:=1
But I dont know how to detect the current fill format...
Can you help me please?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你可以测试:
你可以在调试器中查看对象的属性(我在帮助中找到这个对象时遇到了一些麻烦)。在这种特殊情况下,我正在监视:
ActiveChart.SeriesCollection(1)
。然后,您可以展开属性以查找适用于您的案例的属性。you can test:
you can see the properties of an object in the debugger (i had some troubles finding this one in the help). In this particular case, i was spying:
ActiveChart.SeriesCollection(1)
. Then, you can expand the properties to find which one apply to your case.