C
codequest
I'd like to copy a shape, rename it, and then set up a mechanism that will
call a subroutine and pass a parameter to it when the text in the new shape
is changed.
I'm looking at two approaches, each with issues:
1) If I use the "TextChanged" event, I have to create a new event procedure
for every shape that I build. I've done this before in other code, but it's
complicated, and makes a bulky VBA module and maintenance difficulties.
2) If I create a RUNADDON procedure call formula in the new shape's
"TheText" cell, that event fires when the shape is moved, not just when the
text changes.
I'd like to use the second approach, and somehow get around the fact that
the event fires too much.
Any suggestions on how to get the effect using the second approach, while
limiting the event action to just when the text changes? (Maybe filter out
other events? Test for the TextChanged event in called subroutine?....other
thoughts that reveal my very limited knowledge of how these things work....
Thanks!
call a subroutine and pass a parameter to it when the text in the new shape
is changed.
I'm looking at two approaches, each with issues:
1) If I use the "TextChanged" event, I have to create a new event procedure
for every shape that I build. I've done this before in other code, but it's
complicated, and makes a bulky VBA module and maintenance difficulties.
2) If I create a RUNADDON procedure call formula in the new shape's
"TheText" cell, that event fires when the shape is moved, not just when the
text changes.
I'd like to use the second approach, and somehow get around the fact that
the event fires too much.
Any suggestions on how to get the effect using the second approach, while
limiting the event action to just when the text changes? (Maybe filter out
other events? Test for the TextChanged event in called subroutine?....other
thoughts that reveal my very limited knowledge of how these things work....
Thanks!