detect shape movement

M

Michi D.

Hi all,

I need to detect when a user moves a certain shape. Is
there any event which is able to help me (any examples)?

The background of my problem is as follows:I will use this
within an organigram. My idea so far was the following.
I know that the shapes used there 'know' to which shape
from the upper hierarchie level they are connected. I store
this ID when creating a shape. I read about an
'CellChanged' event and hoped by comparing the stored
number with the new number to recognisewhether the shape
has been connected to a different shape. This caused two
problems fo me:

1) I must confess that based on the online help I am not
able to adapt this the given code. Does anybody has a
different example?
2) Is my try a good one? Or can I not solve my problem
based on this event?

Best regards,
Michi D.
 
G

GMorris

I just answered another message about similar. Try the EventFXMod cell on
for
size. It fires anytime a shape is dropped, moved resized, etc. It can be a
pain,
but it also can be controlled by comparing values to determine WHICH action
caused it to fire. If you can be more specific, ie maybe what code you have
already tried, it will be infinitely easier to help you.
 
M

Michi D.

Hi GMorris,

thanks , that helped a lot (you confused me a bit with
EventFXMod: On the one hand it is called differently in the
german visio edition and on the other hand I did not see
that there is a mistake in writing very quickly).

Nevertheless, you really helped me.

Best regards,
Michi D.
 
G

GMorris

Nice to be appreciated. I always remember how it is when something is right
there but I just can't seem to find it. Those simple Visio events are a big
help
sometimes. I have years of experience with VBA and a few with Visio in
particular, and it never ceases to amaze me how often I STILL run into
things
that stump me. Heck, even today I had a situation where I had forgotten
about
testing for Nothing with 'Is Nothing' as opposed to '= Nothing' (which does
not
work) and it about drove me crazy until I remembered!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top