Hi everyone!
First of all, congrats on the new forum!
I'm having some trouble with the following: I'm trying to move a shape, based on another shape's location (Application.Caller). So that when I click on that shape, the other shape will move (called "mover", for example).
So I tried the following (didn't work):
I tried with MsgBox, and it says PLeft and PTop are always 0, regardless the shape position.
Hope it makes sense.
Thanks!!
First of all, congrats on the new forum!
I'm having some trouble with the following: I'm trying to move a shape, based on another shape's location (Application.Caller). So that when I click on that shape, the other shape will move (called "mover", for example).
So I tried the following (didn't work):
Code:
Dim PTop As Integer
Dim PLeft As Integer
PTop = Sheet1.Shapes(Application.Caller).Top
PLeft = Sheet1.Shapes(Application.Caller).Left
Sheet1.Shapes("mover").Left = PLeft + 10
Sheet1.Shapes("mover").Top = PTop + 10
I tried with MsgBox, and it says PLeft and PTop are always 0, regardless the shape position.
Hope it makes sense.
Thanks!!