Working with Visio Legend through VBA or Macro

I have to put a legend on a floor plan drawing that colors the space shape (rooms) based on a department given in the shape's custom properties.

I add a legend using "Plan->color by values..." menu option, which gives me a legend correctly denoting the spaces and shape counts for each department. However, there is a need for the color of the shape for each department to be a specific color. The only way I know to do this is to edit the legend and manually define the color for each department in the legend.

I also have the desired color value stored in a custom property of the shape, but have not yet found any way to programmatically assign that color to a legend value.

Is there any way to control the properties (look and feel) or even the creation of the legend throug VBA or Macro

When I try to record a macro and work with the legend, absolutely nothing is included in the Macro, even when trying to create or update the legend. Are there any properties or methods exposed for this legend object at all

BTW: I am working with Visio Pro 2003 (11.3216.6408)

Thanks


Answer this question

Working with Visio Legend through VBA or Macro

  • Working with Visio Legend through VBA or Macro