+ Reply to Thread
Results 1 to 3 of 3

Extracting Rotation of Rectangles

  1. #1
    Registered User
    Join Date
    09-05-2021
    Location
    Boston, MA
    MS-Off Ver
    Office 2019 - Excel
    Posts
    1

    Extracting Rotation of Rectangles

    I am looping through all the rectangles on my sheet using the following technique:
    For Each obj In Sheets("Sheet1").Rectangles
    top = obj.Top
    left = obj.left
    rotation = obj.rotation ' this does not work
    Next Obj

    I am able to extract the co-ordinates using top and left, however, rotation doesn't seem to be an attribute of rectangle.
    How can I get/set the rotation of a rectangle?

    Thanks.

  2. #2
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,527

    Re: Extracting Rotation of Rectangles

    This works for me.
    Please Login or Register  to view this content.
    Obviously, I selected the shape (rectangle) for this.

  3. #3
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,527

    Re: Extracting Rotation of Rectangles

    Did it work?

+ 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. 2D rectangles and 3D cuboids
    By Ace_XL in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 08-04-2015, 11:34 AM
  2. [SOLVED] Drawing Rectangles
    By wambaugh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-09-2015, 11:34 AM
  3. [SOLVED] Drawing rectangles from x-y pairs in a table
    By MAA in forum Excel General
    Replies: 2
    Last Post: 04-19-2012, 07:24 PM
  4. Transfer data using vba to excelsheet rectangles.
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-25-2010, 01:54 PM
  5. Rectangles, 1000's of them in spreadsheet.
    By okanem in forum Excel General
    Replies: 1
    Last Post: 06-20-2007, 06:12 AM
  6. loop through rectangles on worksheet
    By jeichhold via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-27-2006, 09:45 AM
  7. [SOLVED] Clearing rectangles
    By Andrew B in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-05-2006, 07:50 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