Clearing Blank rows of background colour

Jokky

New Member
Joined
Jan 23, 2014
Messages
4
Good morning everyone. My name is Joaquin and i am in South Africa. This is my first ever post so forgive me if i am at the wronge place. I am trying to find a macro that will find all blanck rows in my data from A3: R250 and strip the cell of the colour.
i have a macro that inserts blank rows inbetween the data change. but when a data row is coloured, it inserts the row and colours the blank row with what ever colour the row above is.I want to clear the colours from the inserted blank rows. Can any one wite me a macro that will do that please?
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Try using
VBA Code:
Sub MM1()
Dim lr As Long, r As Long
lr = Cells(Rows.Count, "A").End(xlUp).Row
For r = lr To 1 Step -1
    If Range("A" & r).Value = "" Then Rows(r).Interior.Pattern = xlNone
Next r
End Sub
 
Upvote 0
Do you get an error ?
Where are you putting the code ?
Are the cells truly blank ?
 
Upvote 0

Forum statistics

Threads
1,214,661
Messages
6,120,790
Members
448,994
Latest member
rohitsomani

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