jayemoh77

Board Regular
Joined
Feb 2, 2012
Messages
56
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
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
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
 
Upvote 0

Forum statistics

Threads
1,215,097
Messages
6,123,077
Members
449,094
Latest member
mystic19

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top