icewing726
New Member
- Joined
- Oct 9, 2014
- Messages
- 14
My Objective: I have a plot plan that I've figured out a scale between points and feet on. However, to make it more interactive I want it to store the positions as they are labeled so they can autopopulate as people reuse them. I realize that's vague but suffice it to say I'm real close to there.
My Issue: Autopopulate was working but in some cases it doesn't. I created some test code and found out the issue. First, I'm using an elbow connector as the shape I'm manipulating for this. When the top left stay stationary and I drag the other end down and to the right the top left position changes.
However, if you drag the object so the rotation of the object is 0 or 180, the top and left values stay stationary (which is desired/expected). 90 and 270 result in both values changing and I can't figure out they rhyme/reason behind it.
I've tried holding the top left stationary, I've tried holding the bottom right stationary. The only predictable adjustment is 0 or 180. Hoping someone can help me understand.
Here's a code snippet to give you readouts. Simply insert an elbow connector and name it "Measurement"
Thanks for your help!
My Issue: Autopopulate was working but in some cases it doesn't. I created some test code and found out the issue. First, I'm using an elbow connector as the shape I'm manipulating for this. When the top left stay stationary and I drag the other end down and to the right the top left position changes.
However, if you drag the object so the rotation of the object is 0 or 180, the top and left values stay stationary (which is desired/expected). 90 and 270 result in both values changing and I can't figure out they rhyme/reason behind it.
I've tried holding the top left stationary, I've tried holding the bottom right stationary. The only predictable adjustment is 0 or 180. Hoping someone can help me understand.
Here's a code snippet to give you readouts. Simply insert an elbow connector and name it "Measurement"
Thanks for your help!
Code:
Sub Measure()
Set sp = ActiveSheet.Shapes("Measurement")
MsgBox (sp.Left & "//" & sp.Top)
End Sub