RGB to fill color in excel vba -
i have task generate color code . have r g b values listed in 3 different columns , there around 256 rows of r g b values. need fill color corresponding r g b values in each row.
this how has been listed . , require generate corresponding color code next this
sub changerowcolorbasedonatocrgbvalues() dim lrw long lrw = cells(rows.count, "a").end(xlup).row = 1 lrw range("a" & i).entirerow.interior.color = _ rgb(cells(i, "a").value, cells(i, "b").value, cells(i, "c").value) next end sub
Comments
Post a Comment