I am creating a Visio diagram from the data in excel with VBA. My data has a column of names and a second column of addresses. I am able to drop the shapes into Visio and specify the shape (circle, square, etc) based on the name. I am able to put the name on the shape text. I need to change the color of the text. Even perhaps control bold, italics settings. I keep running across the same code examples from Visio discussion boards:
Dim vsoShape As Visio.Shape
Dim vsoCharacters As Visio.Characters
Dim vsoString As String
Set vsoCharacters = vsoShape.Characters
Dim vsoCharacters1 As Visio.Characters
vsoString = vsoShape.Characters
vsoString.CharProps(visCharacterColor) = 0#
i can’t get anything like this to work from excel.
can anyone help?
Dim vsoShape As Visio.Shape
Dim vsoCharacters As Visio.Characters
Dim vsoString As String
Set vsoCharacters = vsoShape.Characters
Dim vsoCharacters1 As Visio.Characters
vsoString = vsoShape.Characters
vsoString.CharProps(visCharacterColor) = 0#
i can’t get anything like this to work from excel.
can anyone help?