Vojo:
Not sure I understand what you’re suggesting. All I want is for the alignment box to show, and to automatically adjust whenever I move the line segments around. I used your DOCMD in place of NOW(), but it repeatedly asked me if I wanted to define user data. Not what I was looking for.
Wapper-man:
Not sure I understand you either. Setting UpdateAlignBox to True did nothing. I did it in all the segments and the group, with and without NoAlignBox, but the box doesn’t cling to the segments.
To reiterate: My goal is to have the alignment box cling tightly to the line segments. Ideally, I want to change...
=CALLTHIS("ThisDocument.ResetAlignmentBox","Tracer")+DEPENDSON(NOW())
...to say...
=CALLTHIS("ThisDocument.ResetAlignmentBox","Tracer")+DEPENDSON(SubshapeOne!Width)+DEPENDSON(SubshapeTwo!Width)+DEPENDSON(SubshapeThree!Width)
...but I don’t know how to access “”SubshapeOne!Width” from the grouped shape. Or SubshapeTwo and SubshapeThree, for that matter.
It turns out it doesn't matter, because I DO know how to access the group shape from the subshapes. So I turned the problem around. In the grouped shape (Sheet.17 in this example), I added three User section rows, SubshapeOne, SubshapeTwo, and SubshapeThree. I added a fourth row that says:
=CALLTHIS("ThisDocument.ResetAlignmentBox","Tracer")+DEPENDSON(User.SubshapeOne)+DEPENDSON(User.SubshapeTwo)+DEPENDSON(User.SubshapeThree)
Lastly, in the first subshape, I added a User.Cell with =SETF(GetRef(Sheet.17!User.SubshapeOne),Width), then SubshapeTwo and SubshapeThree, respectively.
That did it. Whenever any of the line segment lengths change, the new width is reflected on the grouped shape’s user cell, and that user cell is used to trigger the DEPPENDSON. Problem solved.
Thanks again for the help!
- Ken