1,526 questions
1
vote
1
answer
130
views
How to duplicate Visio pages using Excel VBA with late binding?
I am trying to use VBA from Excel to create/configure pages in Visio.
I cannot enable the Microsoft Visio 16.0 Type Library from the Excel VBA console (error indicates a naming conflict). I tried '...
1
vote
1
answer
74
views
Sorting an Excel object in Visio using a macro (VBA)
Currently trying to use the following function to sort some data in a Visio Excel OLE Object. I have confirmed that it can Select the Range (the line before sort), and it is correctly selecting all ...
0
votes
1
answer
69
views
C# Interop.Visio | Is there a way to collect unsaved progress from the Application?
I need to check that all the unsaved progress from Visio is in the UTF-8 encoding before I save the document. The reason I need this, is because the xml data is encoded in UTF-8 and I have people ...
0
votes
1
answer
38
views
Visio Addin - Mouseup event not firing after shape drag
I've got the following code (in testing mode) in a Visio addin to be used to track shapes being dragged. All events appear to be firing as expected - Except.... When I drag a shape, the mouse down ...
1
vote
1
answer
186
views
How to Generate a Flowchart with Swimlanes and Export to Visio Using Python?
Title: Why aren't shapes appearing in my generated Visio file using the vsdx Python library?
Description:
I'm working with the vsdx Python library to generate a flowchart and export it to Visio. My ...
0
votes
1
answer
154
views
How to Assign to "Variable List" Type of Visio Shape Data in VBA
Background:
I have a shape in Visio (basic Rectangle) that has assigned shape data (via right click->Data-> Define Shape Data). Two of these pieces of data, "Parents" and "...
0
votes
1
answer
78
views
VBA TypeName Behavior Inconsitent
I'm very confused right now. I'm using VBA in Visio to do some automated charts, though I don't think it matters that it's Visio. I have defined multiple classes, and some of them are similar but have ...
0
votes
1
answer
247
views
Visio Master Shape Unable to Edit Data Graphic
Background
I want to create a reusable shape in Visio (Visio 365 Desktop) with certain data attached.
I created a custom Stencil in "My Shapes", right clicked it and selected "Edit ...
-1
votes
1
answer
55
views
Pass string to visio shape data table using python
i am trying to pass string value to visio shape data table, but i can able to pass number value to visio shape table & when pass string value python is throwing error.
Please help me what missing ...
0
votes
0
answers
94
views
List the source and destination of each connector in a flowchart
I need to perform the following on a Visio diagram using VBA.
Identify connection point of shapes defined by specific coordinates (e.g., Connections.X4 and Connections.Y4).
Find a connector (arrow) ...
0
votes
0
answers
41
views
Viable width based on text with a constrained height in VIsio
I want to be able to set the height of a rectangle and the width to vary based on the text that has been entered (with the user still able to control the font type and size). This is analogous to the ...
0
votes
0
answers
101
views
SVG 'auto-start-reverse' attribute prevents a document from opening in Visio and leads to unexpected behaviour
I have a simple SVG file that defines an arrowhead at attaches in to the end of the line like this:
<defs>
<!-- A marker to be used as an arrowhead -->
<marker
id="...
0
votes
1
answer
128
views
Export Selection in Microsoft Visio to picture file using VBA
I am having a MS Visio diagram. Often I need to export the part of the drawing to a picture file to use it somewhere else, but I am really tired of using menus.
I want to export some selected elements ...
0
votes
1
answer
156
views
Sorting Shapes and sub shapes alphabetically in visio
Sorry I am a little new to this I have an excel document that creates a visio diagram but the order does not come out alphabetically
'Set shape data properties
.CellsU("Prop.Handle")....
0
votes
1
answer
101
views
How to access "page setup" properties in Visio using VSTO
Can anyone help me out with the above issue?. I have checked the Visio VSTO websites and could not find any codes that accesses the needed page properties.
I need to access the "page setup" ...
0
votes
1
answer
115
views
Change the colour of a shape in a Visio Org Chart
I have an org chart generated from an Excel table. In the table and chart we have a field "Source" to show if the role is filled internally or externally.
I would like the internal and ...
0
votes
1
answer
471
views
How to export Diagram (reactFlow nodes & edges) into VSDX (Visio 2013) file format
I am trying to export my diagram like flowchart to VSDX file but, I have not found a single lead on How can I do that. also there is no such thing like structure of VSDX file or anything available.
I ...
0
votes
1
answer
108
views
CALLTHIS on shapesheet not firing reliably - multiple shapes at the same time
I have a macro-enabled stencil for audio-visual schematic drawings, which includes a rack frame shape for when the team is doing a 19" rack layout. By default this is 1U tall, but when dragged up ...
0
votes
1
answer
72
views
VSTO VB OnAction doesn't activate
I'm creating a VSTO VB On Visual Studio for MS Visio. I have created a Ribbon with buttons, all works well then I've made a DropDown and I want to get back the selected Item. So I created the OnAction ...
0
votes
1
answer
84
views
How to create notifying icon on process boxes in VBA on Visio?
I'm new to VBA with some previous coding experience. I'm doing a job task with Visio (yay).
Is it possible to mimic something like these icons (dark blue ones in 1st pic) in Visio? I'd need to ...
1
vote
1
answer
130
views
Visio Container FillForegnd not taking effect
I'm controlling Visio from Python using win32com and with good results overall so far. After a recent update to my code, container header fills are no longer taking effect. The code I'm using:
class ...
0
votes
1
answer
58
views
Can I have Visio duplicate an image on a different page
I have a schematic template I am working on, and want to be able to have an image across multiple pages but only inserted once. I was thinking something along the lines of a Shape, that I could link ...
0
votes
1
answer
61
views
How to copy text in Excel and PasteSpecial to VISIO using VBA?
I try to copy text form Excel and paste using PasteSpecial but it show error "Run-time error 438" at visApp.ActiveWindow.PasteSpecial 3
Sub CopyTextFromExcelToVisio()
Dim visApp As Object
...
0
votes
0
answers
57
views
Mapping Microsoft EllipticalArcTo to Canvas ellipse
I am doing the function of Microsoft visio file parsing to the web canvas. When compatible with the attributes of EllipticalArcTo, I do not know how to map the EllipticalArcTo to the ellipse method of ...
0
votes
1
answer
164
views
Visio VBA code to copy and paste excel sheets from one to another
I have Visio Vba macro that is supposed to take in a file path to an excel sheet from a global var. Then it opens that file, generates a new excel sheet, and takes the sheets from the old path and ...
0
votes
1
answer
233
views
Visio VBA set dynamic connector to straight connector style
I'm using Python to control Visio via win32com.Client on a Windows 10 Platform. I've had a lot of success with this project but am stuck trying to find an answer. I've been scouring the Microsoft ...
0
votes
1
answer
220
views
Change direction of cross-functional flowchart
Using C# and Microsoft Interop Office Visio, I am trying to change the direction of a cross-functional flowchart.
To do this manually, I have to do the following:
click on cross-functional flowchart ...
1
vote
1
answer
98
views
Wopi host implementation unable to open visio documents
I'm implementing a custom WOPI host and currently is working with word, excel and power points documents. But when I try to open a visio document (vsdx extension) I'm getting the following error:
I ...
0
votes
1
answer
125
views
Open Visio Shapes in the same Window as Design File either via Python or VBA script
I hope someone can advise how I could fix a problem I've been having with Visio Design documents. There are several .vsdx hundred files that would open all their shapes in a new window each.
The ...
0
votes
1
answer
385
views
Visio VBA export to PNG in high resolution?
I am trying to export pages to PNG from Visio, in high resolution.
When I export manually with a custom resolution of 300x300, I get dimensions of 3450x2397.
When I export with VBA with the syntax ...
0
votes
1
answer
145
views
Visio: Property is hidden in user interface / How Master is visualised
I am interested in reading Microsoft Visio files with Python.
I did a custom offline personal Python module to read it; I took great inspiration from this repository: https://github.com/dave-howard/...
0
votes
0
answers
125
views
Visio Data Source 256 characters limit
I'm new to using Microsoft Visio and have encountered an issue while creating a diagram using Excel as a data source. In my Excel sheet, I have columns for Symbolic Name, Name, Next Step ID, Connector ...
0
votes
1
answer
169
views
How can I load excel in visio using python?
I have an excel file containing columns:
Process step ID, Process step description, Next step ID, Connector label, Shape type, Function, Phase.
It has everything required. I want to load it in visio ...
0
votes
1
answer
207
views
CALLTHIS in a subroutine that takes the caller's name as an argument using Visio
My goal is to call a subroutine that takes the caller's name as an argument.
Something like:
Public Sub Shape_DoubleClick(ByVal shapeName As String)
Debug.Print "Shape_DoubleClick called for: ...
0
votes
0
answers
45
views
Add VSDX file to a DOCX file using Java
I have a file with .VSDX extension, i want to add it to the file with .Docx extension using Java. The generated byte[] will later be send in response where i can download it and edit the visio file ...
-1
votes
1
answer
96
views
How to search within opened Shapes in Visio
I have downloaded Online Shapes "Microsoft Azure Cloud Icons"
But I am not able to search within it
Since there are dozens of icons it's very hard to work with it. I am using Desktop ...
0
votes
1
answer
89
views
How to selecte the child shape in Visio(C#)
I'm trying to select the child shape, but It's impossible.
My code doesn't works only child shape.
var app = await FlipClass.GetVisioApplicationAsync();
var doc = app.ActiveDocument;
var page = app....
0
votes
1
answer
297
views
Updating or Creating Shape Data in Visio with PowerShell
I'm working on a project to create a Visio diagram via PowerShell, and I need to update an existing Shape Data (Prop.Row_1 — Prop.Row_3) for shapes from a stencil.
How can I do that?
0
votes
1
answer
304
views
Visio Cut/Copy/Paste Shape Text Only
tl;dr Can I repurpose Cut/Copy/Paste in Visio to transfer text only?
I have some Shapes in Visio that users have frequent repeated data on (Ex: blocks for Date/Time). It's intuitive to use standard ...
0
votes
1
answer
223
views
Automatic creating a gradient color shape in Visio using Python
I'm trying to automate figure/shape generation in MS Visio via some python scripting using win32com. More specifically I'm having issues make converting/creating a shape with gradient fill.
I have a ...
0
votes
2
answers
307
views
Create a dockable window in Visio
I created a Visio Add-In in Visual Studio 2022.
I need create a dockable window, however i can't see a way for create it.
Right now the only way I found was via a window form like:
myCustomForm = new ...
0
votes
2
answers
329
views
How to access an already open visio page from a script attached to a different document
I have one .vssm script file in vba attached to a .vsdm script-enabled document on one side, and hundreds of .vsd and .vsdx files on the other.
With the .vssm script file open in the vba editor in the ...
2
votes
1
answer
194
views
Get layer of shape in Visio in Python
I'm trying to select all shapes within an existing Visio-file that are i. e. in layer "help" to delete them. Is there a way to achive that using python package "vsdx"?
0
votes
1
answer
94
views
How to underline specific text in a shape?
I simply need to underline + bold PRI_SITETXT and SEC_SITETXT and leave all other text bold.
Shape SITEINFO_BOX = SITEINFO.DrawRectangle(1, 14.5, 11, 2.5);
SITEINFO_BOX.CellsU["LinePattern"]....
0
votes
1
answer
168
views
CAD Shapes in MS-Visio Import
I want to extract all the shapes from a CAD file and use these shapes in MS-Visio with the correct sizing. I couldn't import them perfectly because I had already used add-ons in visio like "...
1
vote
1
answer
148
views
Split file by pages including background
tl;dr Is there an efficient way using VBA to split a multipage Visio file into different files per foreground page and including a background page?
A simpler version of this question (excluding the ...
0
votes
2
answers
205
views
In Visio VBA, How do I read and set the weight of a connector
I tried saving a macro where I set the weight of a connector, and got an expression like
Application.ActiveWindow.Page.Shapes.ItemFromID(17).CellsSRC(visSectionObject, visRowLine, visLineWeight)....
0
votes
0
answers
498
views
How to silently uninstall Visio remotely
I have to remove Microsoft Visio silentlyy from a lot computer. I tried Uninstall-Package and wmic commands, via PsExec, seems working but not uninstalling, still there. It is for Visio 2016 and Visio ...
0
votes
1
answer
279
views
Visio VBA drawing line with coordinates as meters
I am working in Visio with VBA. Is there a way to change the starting point from page corner to coordinates of x,y?
When I create a macro it automatically takes the starting point as a page corner and ...
0
votes
1
answer
156
views
How to convert MSOTINT colors to RGB in Visio VBA?
I want to write a macro for Visio that converts all occurrences of one color into another, such as RGB(255,128,0) to RGB(200,128,60), if I want to tone down some bright orange.
When I list the colors ...