+ Reply to Thread
Results 1 to 4 of 4

VBA for shapes

  1. #1
    Registered User
    Join Date
    06-20-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    2

    VBA for shapes

    A spreadsheet has a selection of five countries on a map (shape on the spreadsheet.) On selection of a shape, data is calculated from inputs worksheet onto output worksheet.

    I have a couple of queries :
    1) where do the names "Rectangle" and "Freeform" come from as they are not defined anywhere.
    2) also, what is the code referring to f.left, width etc doing?

    Thanks in advance

    Please Login or Register  to view this content.

  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: VBA for shapes

    Hi,

    Rectangle and Freeform are Default names for the shapes and are assigned to f and r respectively.

    Please Login or Register  to view this content.
    Positions the rectangle(with text) half the difference of the two shapes to the left of the freeform.
    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

  3. #3
    Registered User
    Join Date
    06-20-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: VBA for shapes

    Thanks for this and your prompt reply. It is starting to make more sense now.

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

    Re: VBA for shapes

    You're welcome!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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