Line of code to ADD to this? Need to zero out the items GREATER than zero

ChrisOK

Well-known Member
Joined
Mar 26, 2003
Messages
601
I use this code to bold+red things in a column that need to be flagged (cells with values greater than zero) -
- however, now I need to have the code simply locate anything that is > than 0 and TURN IT TO "0" while also making THAT item red+bold.
Does anyone know an easy way to update this code to turn those items to zero?

I don't want the code to simply zero out the whole column because the analyst needs to know exactly which ones under went the change.
By only turning these items to zero and red and bold, it will be visible to the analyst.

Code:
 'Sub ZeroOutAndRedBold()
    Range("f5").Select
    Do Until ActiveCell.Value = ""
    If Selection.Interior.Color = 16764057 And ActiveCell.Value > 0 Then
    Selection.Font.Bold = True
    With Selection.Font
    .Color = -16776961
    .TintAndShade = 0
    End With
    End If
    ActiveCell.Offset(1, 0).Select
    Loop


End Sub
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
That's IT!! Awesome - thank you!
(I clicked "LIKE" to ensure you got kudos)
Thanks again!
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,631
Latest member
a_potato

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