+ Reply to Thread
Results 1 to 3 of 3

VBA Coordinates

  1. #1
    Registered User
    Join Date
    11-08-2013
    Location
    Ireland
    MS-Off Ver
    Excel 2010
    Posts
    45

    VBA Coordinates

    Hi

    Im relatively new to VBA and as part of my final year project in college I have to create animations of mechanisms in excel for educational purposes. How does the coordinate system work when inserting a shape, I cant find any information on it? I know a A screen position has an X and a Y coordinate, with X increasing to the right and Y increasing downward. The origin (0,0) is the top left corner of the worksheet. how does that relate to top and left in code in VBA?

    Thanks

    Paul

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: VBA Coordinates

    Cell A1 has a .top of 0 and .left of 0. The .width and .height denote the size of the cell from which the .top and .left of the adjacent cells is determined.

    So if you have a shape that you want to put in A1 and then move across each cell one at a time:
    Please Login or Register  to view this content.
    and so on

  3. #3
    Registered User
    Join Date
    11-08-2013
    Location
    Ireland
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: VBA Coordinates

    Ah I see!

    Thanks for the help!

+ 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. Coordinates
    By tco9998 in forum Excel General
    Replies: 2
    Last Post: 06-07-2012, 05:23 AM
  2. UTM coordinates on map
    By revenge in forum Excel General
    Replies: 0
    Last Post: 04-19-2012, 09:38 AM
  3. GPS Coordinates
    By Zan03 in forum Excel General
    Replies: 14
    Last Post: 05-05-2010, 07:56 AM
  4. [SOLVED] map coordinates
    By areaume in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 07-17-2006, 11:40 AM
  5. Convert point coordinates -> pixel coordinates
    By Zorro in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-31-2006, 10:30 PM

Tags for this Thread

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