J
Jerry Hansen
I'm reposting, since I had no response on the last try.
I'm running Mac Excel v.X
I have a userform with an image on it called Image1. There is a
textbox called tbPeak In the form code, there is a handler for a
MouseOver even for this image:
Private Sub Image1_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, _
ByVal x As Single, ByVal y As Single)
tbPeak.Text = x & ":" & y
End Sub
When I run the form and place the mouse over the image, it reports (in
the text box) the x coordinate as being a number between 2 and 3.8899
(the image is 78 pixel wide. It reports the y cooridinate as being 0
no matter where I put the mouse over the image.
What am I doing wrong?
My goal is to allow the user to move the image around on the form to
graphically get input based on the location they moved the image to.
I'm running Mac Excel v.X
I have a userform with an image on it called Image1. There is a
textbox called tbPeak In the form code, there is a handler for a
MouseOver even for this image:
Private Sub Image1_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, _
ByVal x As Single, ByVal y As Single)
tbPeak.Text = x & ":" & y
End Sub
When I run the form and place the mouse over the image, it reports (in
the text box) the x coordinate as being a number between 2 and 3.8899
(the image is 78 pixel wide. It reports the y cooridinate as being 0
no matter where I put the mouse over the image.
What am I doing wrong?
My goal is to allow the user to move the image around on the form to
graphically get input based on the location they moved the image to.