vba visio的vba编程

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9988429/
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 15:43:29  来源:igfitidea点击:

vba programming for visio

vbavisio

提问by Shrestha Sunil

Currently, I am working for IVR(Interactive Voice Response) System. To add the service in the IVR, I have to make the flow in the visio which have pre-defined shape provided by the seller of IVR SYstem. The shape is programmed in VBA. I decided to learn VBA for modification in the pre-defined shape. While searching in google, It shows the only results for excel VBA programming. Is it same for visio also. Please help me to get the source for the learning the VBA programming for MS VISIO. So, that I can add new shape for customizing the service

目前,我正在为 IVR(交互式语音响应)系统工作。要在 IVR 中添加服务,我必须在 visio 中制作由 IVR 系统卖家提供的预定义形状的流程。形状是在 VBA 中编程的。我决定学习 VBA 以修改预定义的形状。在谷歌搜索时,它显示了excel VBA编程的唯一结果。visio 也一样。请帮助我获取学习 MS VISIO 的 VBA 编程的源代码。因此,我可以添加用于自定义服务的新形状

回答by JohnGoldsmith

As Tim points out there lots of good stuff on the Visio VBA search, but I'll add a few links as well.

正如 Tim 指出的,Visio VBA 搜索中有很多好东西,但我也会添加一些链接。

The language (VBA) is just the same as what you're finding for Excel. The difference is the object model. Excel deals with Workbooks, Worksheets and Ranges, while Visio deals with Documents, Pages and Shapes. To be useful at the automation side you also need to understand the ShapeSheet as you be writing code that talks to this 'properties window' alot.

语言 (VBA) 与您在 Excel 中找到的相同。区别在于对象模型。Excel 处理工作簿、工作表和范围,而 Visio 处理文档、页面和形状。为了在自动化方面有用,您还需要在编写与此“属性窗口”对话的代码时了解 ShapeSheet。

I wrote a 'Just for starters' post a while ago for people new to Visio development, but other good resources are as follows:

不久前,我为 Visio 开发新手写了一篇“仅供初学者”的帖子,但其他好的资源如下:

...and that's not it. Any of the above blogs, mine included, have lists of other blogs and resources, but this should do you for the time being.

……不是这样。上面的任何博客,包括我的,都有其他博客和资源的列表,但这暂时应该对你有用。

[Update 27th June 2016 - I'll add another resource which may be helpful for developers wanting to interact with Visio and that's a two-part video course I recently put together - 'Visio, a flyby for developers']

[2016 年 6 月 27 日更新 - 我将添加另一个资源,这可能对想要与 Visio 交互的开发人员有所帮助,这是我最近整理的一个由两部分组成的视频课程 - ' Visio,开发人员的飞越']