Hello - I wonder if anybody has seen this before..[actually there appears to be a 'cascade' of problems here]
1. I have a shape which is showing the wrong font as its text (Wingdings).
2. Now I go to : Tools | Options | Regional Setting, and switch on 'Complex scripts text' to 'Show'
3. Right Click the shape, Format | Text - I can see the Complex scripts Font: is indeed set to Wingdings
4. I change the font (just clear the field), and click apply | OK: The shape is correctly updated.
Now...here's the funny business:
1. If I repeat the steps above, but record the steps with a macro (just step 3 actually) I get this: [I have stripped out the undo steps here, the font is being set to Courier as it happens in this instance ]
Sub Macro1()
Application.ActiveWindow.Page.Shapes.ItemFromID(4).CellsSRC(visSectionCharacter, 0, visCharacterComplexScriptFont).FormulaU = "71"
2. When I run this Macro: the shape DOES NOT GET UPDATED. However, the properties show the Complex scripts font has changed in the field - the shape just hasn't 'noticed' it....
Actually I have instances where the 'complex scripts' is set to blank: but the shape shows with Wingdings (or other crazy) fonts.
In each case, the only sure way of restoring normality is to go through the manual procedure.
I have used this VBA: (It works on some shapes - but not these weird ones...)
---
Sub Show_Complex_Fonts()
Dim shapeObject As Visio.Shape
Dim cellObject As Visio.Cell
Dim Count As Integer
For Count = 1 To ActivePage.Shapes.Count
Set shapeObject = ActivePage.Shapes(Count)
Set cellObject = shapeObject.Cells("Char.ComplexScriptFont")
MsgBox "Shape:" + shapeObject.Text + ", Complex Font=" + cellObject.Formula
Next Count
End Sub
---
This also does the same: weirdly when I run the above, and then query back with:
---
Sub Show_Complex_Fonts()
Dim shapeObject As Visio.Shape
Dim cellObject As Visio.Cell
Dim Count As Integer
For Count = 1 To ActivePage.Shapes.Count
Set shapeObject = ActivePage.Shapes(Count)
Set cellObject = shapeObject.Cells("Char.ComplexScriptFont")
MsgBox "Shape:" + shapeObject.Text + ", Complex Font=" + cellObject.Formula
Next Count
End Sub
---
...the font IS reported back correctly - but the shape doesn't change...
Sorry for long-winded email - anybody seen this, or something like this - or something any part of any of this ?
Cheers !
John