excel - Automatically copy a cells colour to another cell -


this simple problem can't seem find solution. use 3 different cell styles (good,neutral , bad). want want cell adjacent 1 colour coded same colour. example cell o11 selected (green colour), hence cell m11 should automatically change cell style according cell o11.

any suggestions?

p.s o11 set manually (no conditional formatting)

to solve problem need create variable hold cells color value , set value cell. use following example:

sub copy_color()
dim icolor long
dim long

for = 11 20     icolor = worksheets("sheet name").range("m" & i).interior.color     worksheets("sheet name").range("o" & i).interior.color = icolor next 

end sub


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -