Icon Sets

jayemoh77

Board Regular
Joined
Feb 2, 2012
Messages
50
Can someone help me with this?

I need results to be a green down arrow when A is smaller that C
A&C are equal... a yellow sideways arrow
A is bigger than C ... a red up arrow
ABC
50result would be a green down arrow100
100result would be a yellow side ways arrow100
100result would be a red up arrow50

<tbody>
</tbody>

Thanks a million!
Julie
 

MickG

MrExcel MVP
Joined
Jan 9, 2008
Messages
14,841
This will give the basics of what you require.
You will probably have to play with shape sizes/Position to get what you want !!!
Code:
[COLOR="Navy"]Sub[/COLOR] MG13Jun04
[COLOR="Navy"]Dim[/COLOR] Rng [COLOR="Navy"]As[/COLOR] Range, Dn [COLOR="Navy"]As[/COLOR] Range, aRw [COLOR="Navy"]As[/COLOR] Object, col [COLOR="Navy"]As[/COLOR] [COLOR="Navy"]String[/COLOR]
[COLOR="Navy"]Set[/COLOR] Rng = Range(Range("A2"), Range("A" & Rows.Count).End(xlUp))
[COLOR="Navy"]For[/COLOR] [COLOR="Navy"]Each[/COLOR] Dn [COLOR="Navy"]In[/COLOR] Rng
[COLOR="Navy"]Select[/COLOR] [COLOR="Navy"]Case[/COLOR] True
    [COLOR="Navy"]Case[/COLOR] Dn.Value > Dn.Offset(, 2).Value
        [COLOR="Navy"]Set[/COLOR] aRw = ActiveSheet.Shapes.AddShape(msoShapeUpArrow, 10, 10, 20, 25)
        aRw.Fill.ForeColor.RGB = RGB(255, 0, 0)
     [COLOR="Navy"]Case[/COLOR] Dn.Value < Dn.Offset(, 2).Value
         [COLOR="Navy"]Set[/COLOR] aRw = ActiveSheet.Shapes.AddShape(msoShapeDownArrow, 10, 10, 20, 25)
        aRw.Fill.ForeColor.RGB = RGB(0, 176, 80)
    [COLOR="Navy"]Case[/COLOR] Dn.Value = Dn.Offset(, 2).Value
        [COLOR="Navy"]Set[/COLOR] aRw = ActiveSheet.Shapes.AddShape(msoShapeLeftRightArrow, 10, 10, 40, 20)
        aRw.Fill.ForeColor.RGB = RGB(255, 255, 0)
[COLOR="Navy"]End[/COLOR] Select
aRw.Top = Dn.Offset(, 1).Top + 5 '[COLOR="Green"][B]play with these number to get correct position[/B][/COLOR]
aRw.Left = Dn.Offset(, 1).Left + 30 '[COLOR="Green"][B]play with these number to get correct position[/B][/COLOR]
[COLOR="Navy"]Next[/COLOR] Dn
[COLOR="Navy"]End[/COLOR] [COLOR="Navy"]Sub[/COLOR]
Regards Mick
 

Forum statistics

Threads
1,081,984
Messages
5,362,556
Members
400,680
Latest member
Wild Child

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top