VBA Macros: Exporting Visio Shape Report into New Excel File, then Creating a Pivot Table

橙三吉。 提交于 2019-12-02 07:42:25

You can just use the Get/CreateObject function to use an Excel application instance from Visio.

Have a look at this article:

http://msdn.microsoft.com/en-us/library/gg251785.aspx

You might also find this useful:

http://support.microsoft.com/kb/309603

...it describes the opposite direction (ie controling Visio from another app), but in your case you'd do something like:

Dim AppExcel As Excel.Application

   On Error Resume Next

   Set AppExcel = GetObject(, "excel.application")

   If AppExcel Is Nothing Then
      Set AppExcel = CreateObject("excel.application")
   End If

Hope that helps.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!