M
mangesh_yadav
I am showing some data in a UserForm on a chart using the MouseMov
event. When I move the mouse over a series, the form opens up showin
some data.
I want to open the form exactly at the point where the mouse is, fo
which I use the following code:
Private Sub Chart_MouseMove(ByVal Button As Long, ByVal Shift As Long
ByVal x As Long, ByVal y As Long)
ActiveChart.GetChartElement x, y, IDNum, a, b
' here x, y are the positions of the chart
UserForm.StartUpPosition = 0
UserForm.left = x
UserForm.top = y
UserForm.Show
--------------
But the problem is that the form does not open near the mouse cursor
Any ideas...
- Manges
event. When I move the mouse over a series, the form opens up showin
some data.
I want to open the form exactly at the point where the mouse is, fo
which I use the following code:
Private Sub Chart_MouseMove(ByVal Button As Long, ByVal Shift As Long
ByVal x As Long, ByVal y As Long)
ActiveChart.GetChartElement x, y, IDNum, a, b
' here x, y are the positions of the chart
UserForm.StartUpPosition = 0
UserForm.left = x
UserForm.top = y
UserForm.Show
--------------
But the problem is that the form does not open near the mouse cursor
Any ideas...
- Manges