Setting Text Node Justification in MS VBA
Setting Text Node Justification in MS VBA
(OP)
I'm trying to place a text node in VBA and i want to set it's justification to CenterCenter. TextNodeElement.Justification is readonly...
so i cant set it that way...
Any ideas?
Thanks
CODE
Dim txt As TextNodeElement
txt.Justification = MsdTextJustification.msdTextJustificationCenterCenter
txt.Justification = MsdTextJustification.msdTextJustificationCenterCenter
Any ideas?
Thanks





RE: Setting Text Node Justification in MS VBA
1. Set the active text node justification prior to creating the text node
ActiveSettings.TextStyle.NodeJustification = MsdTextJustification.msdTextJustificationCenterCenter
2. After you place the text node modify the justification on each element in the text node
Dim ee as ElementEnumerator
set ee = txt.GetSubElements
Do While ee.MoveNext
ee.Current.AsTextElement.TextStyle.Justification = MsdTextJustification.msdTextJustificationCenterCenter
Loop
RE: Setting Text Node Justification in MS VBA
Thanks for the help.