如何在 VBA 中列出图表对象的属性? [英] How to list properties of a chart object in VBA?

查看:19
本文介绍了如何在 VBA 中列出图表对象的属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想克隆(使用 VBA)一些图表并能够更改它们,因为我需要知道它们包含的内容.

I want to clone(using VBA) some charts and be able to change them for that I need to know what they contain.

如何在 VBA 中列出图表对象的属性,更像是其他语言中的对象转储?

How to list properties of a chart object in VBA, more like an object dump in other languages?

推荐答案

在 VBE 中,使用本地窗口:

In the VBE, use the Locals window:

然后您可以复制任何现有图表,并简单地操作需要为每个图表更改的属性,或者您可以即时创建新图表,根据需要设置属性.

You can then copy any existing charts, and simply manipulate the properties that need to be changed for each, or you can create new charts on-the-fly, setting the properties as needed.

这篇关于如何在 VBA 中列出图表对象的属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆