如何在 excel 2007 中使用 vba 操作智能艺术?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/16160789/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-11 20:46:47  来源:igfitidea点击:

How to manipulate smart art using vba in excel 2007?

vbaexcel-2007

提问by Mr1159pm

I am trying to create smartart org charts using excel 2007 vba. I tried to first record the macro to see what objects are involved but with no luck. Nothing was recorded. There are some examples online of smart art and vba in excel 2010 but nothing for excel 2007. Does it mean that smart art is not accessible using vba in excel 2007? Is there maybe some workaround?

我正在尝试使用 excel 2007 vba 创建 smartart 组织结构图。我试图首先记录宏以查看涉及哪些对象,但没有运气。什么都没有记录。在 excel 2010 中有一些关于 smart art 和 vba 的在线示例,但在 excel 2007 中没有。这是否意味着在 excel 2007 中无法使用 vba 访问 smart art?也许有一些解决方法?

回答by Bruno Leite

It is possible, but is not a simple task.

这是可能的,但不是一项简单的任务。

Read more on

阅读更多

http://msdn.microsoft.com/en-us/library/office/gg583880(v=office.14).aspx

http://msdn.microsoft.com/en-us/library/office/gg583880(v=office.14).aspx

You need manipulate a XML part of file to create new options of SmartArts.

您需要操作文件的 XML 部分来创建 SmartArts 的新选项。

For me, very big work to very small results...

对我来说,非常大的工作到非常小的结果......