visio-vba

VBA for Visio 2013 to save as SVG

▼魔方 西西 提交于 2020-01-16 00:59:10
问题 I need a macro which will allow me to save the current Visio drawing as an SVG file. The quickest way I can do at the moment is to use the F12 keyboard shortcut which gives me the Save As dialog, but still each time I have to select the proper output file, i.e. PNG, and then write the name of the file. Is it possible to automate this? I was looking for something like Macro recording in Visio, but couldn't find that. 回答1: For file formats of .bmp, .dib, .dwg, .dxf, .emf, .emz, .gif, .htm, .jpg

open a fileDialog in visio vba

試著忘記壹切 提交于 2020-01-05 15:20:06
问题 I'm coding macros in vba Word and on visio 2013. I wanted to open a fileDialog so that the user can choose where to save his file. I succeded in word, but in visio it doesn't to work the same. I wrote this in word: Dim dlg As FileDialog Dim strPath As String 'Boite de dialogue pour choisir où enregistrer son fichier Set dlg = Application.FileDialog(msoFileDialogFolderPicker) With dlg .InitialFileName = Application.ActiveDocument.Path .AllowMultiSelect = False .Title = "Choisir le répertoire d

Finding id of shape dragged onto screen in Visio using VBA macro

喜欢而已 提交于 2019-12-11 06:46:18
问题 I currently have a program in Visio that when a specific shape in my custom stencil is dragged onto the screen, a user form comes up and asks the user a question with a combo box used for the user to select an answer. Based on the answer selected, the shape data should change for that object. The problem that I am facing is that I am not sure how to target the ID of the shape automatically to then change its shape data. Since multiple of these shapes may be placed, I can not manually write a

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

爱⌒轻易说出口 提交于 2019-12-04 06:10:25
问题 So basically, I have a Visio file that has lots of shapes and data. I'm trying to create a shape report into a new excel file, and then have the excel file turn the exported data into a pivot table programmatically. I have a macro running in Visio that generates the excel file with data in normal table form already. I want to be able to run a macro in Visio that activates the excel window of exported data and runs a macro to make it into a pivot table. However, any excel macro code I put into

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

橙三吉。 提交于 2019-12-02 07:42:25
So basically, I have a Visio file that has lots of shapes and data. I'm trying to create a shape report into a new excel file, and then have the excel file turn the exported data into a pivot table programmatically. I have a macro running in Visio that generates the excel file with data in normal table form already. I want to be able to run a macro in Visio that activates the excel window of exported data and runs a macro to make it into a pivot table. However, any excel macro code I put into my visio macro modules is unrecognized (e.g. "Range"), presumably because they're not words recognized