+ Reply to Thread
Results 1 to 3 of 3

Assigning Properties to SHAPES

  1. #1
    Forum Contributor
    Join Date
    03-02-2014
    Location
    usa
    MS-Off Ver
    MS 365
    Posts
    593

    Assigning Properties to SHAPES

    Hello,
    I am inserting a shape in my worksheet.
    Is it possible to assign a size property to that shape?
    I mean, if the shape is a LINE and I want to assign that line a length, say 10 Ft. I want to be able to use the value of 10 in my Excel calcs; or, if I inserted a RECTANGLE, I want to assign that rectangle a width and length and use the area value in my calcs.
    The next step would be to have excel dynamically evaluate the values if I strech the shapes.
    Thanks

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Assigning Properties to SHAPES

    Hi plans,

    Shapes (including lines) have the attributes of Left, Top, Height, Width in arbitrary Excel Units. Your mission if you choose to accept it, is to change the arbitrary Excel units into Engineering Units.

    The following macros may help you.
    Please Login or Register  to view this content.
    To prevent typos from ruining days and weeks of work 'Option Explicit' is NEEDED at the top of each code module. This prevents errors caused by missspellings and FORCES every variable to be DECLARED (e.g. Dim i as Integer). http://www.cpearson.com/excel/DeclaringVariables.aspx

    I hope this helps.

    Lewis

  3. #3
    Forum Contributor
    Join Date
    03-02-2014
    Location
    usa
    MS-Off Ver
    MS 365
    Posts
    593

    Re: Assigning Properties to SHAPES

    Thank you;
    It is a good guideline; it helps to start!

+ 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. [SOLVED] Shapes vs oleobjects vs oleobject.object ( for commandbutton properties )
    By Xeliax in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-23-2013, 04:17 PM
  2. Properties for auto shapes
    By zplugger in forum Excel General
    Replies: 3
    Last Post: 12-17-2011, 11:50 AM
  3. Avoid changes of text properties when calling Shapes().Formula
    By EseKuent in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-04-2009, 02:31 AM
  4. Assigning multiple shapes to macro.
    By ben in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2006, 11:30 AM
  5. [SOLVED] Assigning Macros to Grouped Shapes
    By Spinner in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-30-2005, 11:45 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