EXCEL:delete b1 if a1 font color is red -
if a1 written in red color , delete content of cell b1 if a2 written in red color , delete content of cell b2 if a3 written in red color , delete content of cell b3 if a4 written in red color , delete content of cell b4 if a5 written in red color , delete content of cell b5 , on ...please help
something like:
sub betterredthan() dim rng range, r range each r in intersect(range("a:a"), activesheet.usedrange) if r.font.color = vbred r.offset(0, 1).clear end if next r end sub
Comments
Post a Comment