+ Reply to Thread
Results 1 to 2 of 2

Find coordinates of a line shape

  1. #1
    Registered User
    Join Date
    08-31-2017
    Location
    Spokane Washington
    MS-Off Ver
    14 and up. All components
    Posts
    4

    Find coordinates of a line shape

    I need to find the X, Y coordinates of the from and to points of a drawn line in a spreadsheet using VBA. The basic problem is that I have saved a name for the line using the coordinates when it was created but now when the line is selected by the user I need to determine the name but to do that I need the coordinates. Any help would be greatly appreciated.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Find coordinates of a line shape

    For a positive slope line:

    Please Login or Register  to view this content.
    But - you can get the name(also in the code).
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How do I get line coordinates assigned to variables in this macro
    By levins1951 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-06-2017, 06:32 PM
  2. Maximum Coordinates Points of a Curve Line
    By humpherdinck in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-01-2016, 09:48 PM
  3. Coordinates End Points of a Line
    By Joakim N in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-21-2015, 03:03 PM
  4. VBA code for line between two coordinates
    By Jan Rennel in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-14-2014, 05:53 PM
  5. Line of best fit and more using cells as coordinates
    By pockethands in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-06-2014, 05:06 PM
  6. Cant get end coordinates of an Excel Line
    By Rojepo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-04-2012, 12:27 PM
  7. Excel 2008 : Shape and coordinates?
    By saapas in forum Excel General
    Replies: 1
    Last Post: 10-02-2010, 04:58 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1