excel - How to use VBA to color and frame cells with value -
i'm trying color , frame column in data. there blank rows inside. want color cells value. data position might change, want use input box color , frame .
the data this. select range column b.
1 2 b 3 4 5 b 6 7 8 b 9 10 11 b 12 13 14 b 15 16 17 b 18 19 20 b 21 22 23 b
you don't need vba - use conditional formatting. highlight entire column b, go "conditional formatting" under home tab. click "new rule" , choose last 1 in list, "use formula determine cells format.", enter in box =$b1<>""
. click "format" , go "fill" - choose color want, , hit "ok" , "ok". should it!
edit: ah, input box - can expand on want that? mean using "color , frame"?
Comments
Post a Comment