How to get top and left position of a chart in Excel in Applescript?

Hi!

I want to get the top and left position of a chart in Excel in Applescript. here is the code. It always returns 4.0 in both top and left position.

tell application “Microsoft Excel”
set {top:top_active_chart, left position:left_active_chart} to chart area object of active chart

return "top:: " & top_active_chart & return & "left position:: " & left_active_chart

end tell

If anyone can help!!

Thanks.

Hi,

looks like a bug! I get the same result. A work around could be to identify the active chart
in the list of charts of active sheet and take the values from there