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

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -