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

  • Thread starter sid_a via MacKB.com
  • Start date
S

sid_a via MacKB.com

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.
 
Top