Message 1 of 4
Changing Leader Text Justification throws unexpected results

Not applicable
08-14-2011
07:21 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I'm having problems editing Leader Notes with VBA. I've written code which replaces all our LeaderNotes and Balloons with the same object which has slightly different properties (namely, the leader colour and lineweight). Now my problem is that when I adjust the verticle justification of a LeaderNote, then the colour property is disturbed. By default, our LeaderNotes have colour = ByLayer. However once I change the Verticle Justification, then the colour is changed to Black by Override.
I'm using this code to change the justification
newLeader.VerticalJustification = oldLeader.VerticalJustification
And I tried using this code to manually fix the colour
Set clrColor = ThisApplication.TransientObjects.CreateColor(0, 0, 0) clrColor.ColorSourceType = kLayerColorSource newLeader.Color = clrColor
but nothing is working... It's driving me mad, does anyone have any suggestions???
Thanks