+ Reply to Thread
Results 1 to 11 of 11

Can you bind an Excel 2010 Ready-made shape from the "Shapes" section to a Cell?

  1. #1
    Registered User
    Join Date
    10-17-2013
    Location
    Michigan
    MS-Off Ver
    Excel 2010
    Posts
    15

    Can you bind an Excel 2010 Ready-made shape from the "Shapes" section to a Cell?

    I am working with charts that I want to assign green, yellow, or red shapes based on a formula that checks to see if the number in a particular cell is improved, worse, or the same compared to another cell. So I would like to assign a green star, yellow triangle, or red octagon to a YTD Status?? Is it possible pick the shape and put it into a cell on my data sheet and then reference that cell in my formulas so that it populates that shape???? I have made it work using a ready-made symbol from the Symbols section but I can't get the Shapes to work. Help!!! Thank you!

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Can you bind an Excel 2010 Ready-made shape from the "Shapes" section to a Cell?

    slightly confused as you mention charts and then describe shapes on cells.

    You can use shapes as custom markers on a chart.

    Or you can use user defined function to alter a shape.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    10-17-2013
    Location
    Michigan
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Can you bind an Excel 2010 Ready-made shape from the "Shapes" section to a Cell?

    Hi Andy -

    Sorry for any confusion....I have a spread sheet that has a "Status" column that I would like to have auto populate with one of three Shapes (found in the "shapes" section under "illustrations") either a Star, Octagon, or Triangle based on a certain value that is obtained by a formula that is comparing values in several other cells.

    I can successfully have it auto populate a "symbol" from the "Symbols" section but I have not been able to have one of these shapes auto populate. I assigned three different symbols to three cells in my data sheet and based on my formula it will populate the appropriate symbol...however, I want to use the above mentioned "shapes" instead because they are in color and the exact shape I want to use....I cannot figure out a was to assign a shape to a cell in my data sheet so when I use the formula it populates with the shape assigned to the cell. I am using =IF(P7=B7,(Sheet3!$A$1),IF(P7>C7,(Sheet3!$A$2),IF(P7<=C7,(Sheet3!$A$3),""))) as an example of how I am pulling the cell that has a symbol in it to populate the status column...but so far I can't get a shape to work the same way...does this make more sense??
    Last edited by yukontornado; 11-18-2013 at 12:28 PM.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Can you bind an Excel 2010 Ready-made shape from the "Shapes" section to a Cell?

    function in standard module

    Please Login or Register  to view this content.
    cell formula like this

    =udtMYSYMBOL("shpTEST_1",D8,E8)

    You will need to add a shape and name it.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-17-2013
    Location
    Michigan
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Can you bind an Excel 2010 Ready-made shape from the "Shapes" section to a Cell?

    Thank you Andy - I will try to decifer this and test it out!

  6. #6
    Registered User
    Join Date
    10-17-2013
    Location
    Michigan
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Can you bind an Excel 2010 Ready-made shape from the "Shapes" section to a Cell?

    yeah.........well, so far no luck in making it work?? Not sure what I am missing! Sorry I am making this difficult for you - I could attach my excel file for you to look at?

  7. #7
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Can you bind an Excel 2010 Ready-made shape from the "Shapes" section to a Cell?

    example file would make it easier to understand what you have done and what's not working

  8. #8
    Registered User
    Join Date
    10-17-2013
    Location
    Michigan
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Can you bind an Excel 2010 Ready-made shape from the "Shapes" section to a Cell?

    Andy -

    I will send it after lunch sir. In about an hour.

  9. #9
    Registered User
    Join Date
    10-17-2013
    Location
    Michigan
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Can you bind an Excel 2010 Ready-made shape from the "Shapes" section to a Cell?

    Andy - ok, included is an example of the matrix I am working with or very similiar. There is a main page (2013) and a Data page that currently has a selection of shapes/symbols that I was trying to make work. Column A has both stock symbols and custom "shapes" that I set in the cells. Column B has stock symbols that I have color and size enhanced and would love to use those as my permanent symbols. I have also created copies on the main page of those symbols as well trying to see if it was a problem with going sheet to sheet for containing the formatting. I had no luck from either spot. Row 7 has the formula in it for the YTD Status Column cell - current green stars (which are not generated by formula they are manually put there based on numbers) which pulls the correct shape (see cell below it) but I had to manually format it to look correct. Row 10 is what it looks like when the formula pulls it in. Row 34 has an manual octagon shape that I am changing to the formula imported pentagon (this one too works but only pulls in unformatted shape - I manually assigned a conditional format style to it) and Row 174 has has the last shape I want but only pulls the unformatted shape. I figured the checkmark, isosceles triangle, and homeplate pentagon would work better than my other shapes in column A because they are symbols and can be directly assinged to a cell....we just need to figure out how to carry the color/size formatting with it in the formula solution. Thank you for looking at this!
    Attached Files Attached Files

  10. #10
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Can you bind an Excel 2010 Ready-made shape from the "Shapes" section to a Cell?

    This workbook might help with your problem of inserting shapes into cells. This workbook has shapes that have been saved as pictures then inserted into cells and assigned names.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  11. #11
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Can you bind an Excel 2010 Ready-made shape from the "Shapes" section to a Cell?

    I have added 1 example formula in V7.

    You will need to give the shapes unique names.
    To make the UDF dynamic you will need to add to the formula in order to determine which shape and colour values to use.
    Attached Files Attached Files

+ 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] Excel 2010 -- "Visual Basic" "Macros" and "Record Macro" all disabled.
    By NicholasL in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-07-2017, 06:11 AM
  2. Replies: 2
    Last Post: 06-25-2013, 12:43 PM
  3. Excel 2010 (Run-time error '13' type mismatch) "Debug" and "Continue" Grayed out.
    By Jeronimo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-18-2012, 06:42 PM
  4. vba Excel 2010, "copy" RGB colour values from cell into variables
    By Efes in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2012, 05:12 AM
  5. Mysterious Excel 2003 crash (suspect problem with "shapes")
    By yuanmin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2009, 09:04 PM

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