Quote:
|
Originally Posted by scouse13 thankx bomb21
i dont want to use a button to make the changes i want it to happen automattically when the check box ix checked, whats the code and where do i put it
thanks
also stupid as i am, where do u check for the code for colours |
I don't understand your post.
1. I didn't mention using a button at all.
2. If you use a Control Toolbox checkbox, you don't need any (VBA) code specifically, you just link it to the cells (to colour) using the LinkedCell property. If you use a Forms toolbar checkbox, you don't need any code
at all.
3. I guessed that you already have a checkbox on your sheet. You didn't say which type you'd used, so I made the "instructions" basic enough that they'd work for either type (I did test this)
4. Rollin's code (assuming you know how to exit Design Mode) will format A1:C1 with a yellow background when you check the box. But it won't "unformat" when you
uncheck the box -- you'd need additional code for that.
HTH