PDA

View Full Version : correct add method for ovlPointer



bigt95nt
05-09-2011, 01:02 PM
Below is a snipet of code that modifies properties for existing "ovlPointer". I'v tried to add this shape using .add method but no go can someone please comment.


With mchtChart
dXVal = (X * dPixelSize / dZoom - .ChartArea.Left)
dYVal = (Y * dPixelSize / dZoom - .ChartArea.Top)
With .Shapes("ovlPointer")
.Height = .Width
.Left = dXVal - (.Width / 2) - 4
.Top = dYVal - (.Height / 2) - 4

End With
End With