I know I can draw a rectangle in Visio VBA using the Shape.DrawRectangle
method, which is basically equivalent to using the "rectangle" tool in the manual UI. However, the Visio shapes panel also includes a "rounded rectangle". How can I draw a rounded rectangle using VBA?
I found that Excel has a kind of equivalent shape via msoShapeRoundedRectangle
. However I couldn't find any way to create an msoShapeRoundedRectangle
in Visio, so maybe it's Excel-specific. Other than that, I've found no information about this online, or in the documentation.