View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
broderick broderick is offline
external usenet poster
 
Posts: 3
Default need to get the vertices/endpoints of a line

I am using Excel 2007, and need to get the vertices (endpoints) of a line.
Neither the Vertices nor Nodes methods of the Shape object work for a line
(as stated in their Help). In an earlier version, I used a workaround of
inserting a dummy second node in the line, and Excel automatically converted
the line to a freeform polygon, and then the Vertices method worked. That
workaround no longer works. I also tried setting the Type property of the
line to msoFreeform, and get an error. The only information I seem to be
able to get is the Left, Right, Width and Height (bounding rectangle), so I
don't know whether the line has a negative or positive slope (goes from top
left to bottom right, or the reverse). Any suggestions are greatly
appreciated.