excel vba - How to change row color based on a checkbox status change? -
i've been trying several codes when editing macro of checkbox none seem have effect, , error 424 missing object 
so it's checkbox44_onclick() can't use checbox44.value or @ all
any ideas how can change row color based on checkbox status?
sub checkbox44_click() if checkbox44.value = true worksheets("sheet1").range("8:8").interior.colorindex = 36 end if end sub
there few different types of check boxes available in excel (form controls, activex controls). seems using forms controls check box. try code:
sub checkbox44_click() activesheet.checkboxes("checkbox44") if .value = xlon worksheets("sheet1").range("8:8").interior.colorindex = 36 end if end end sub make sure name of checkbox correctly set (check name box when check box selected):

Comments
Post a Comment