The Forms control background can not be changed.
That link was to ActiveX control on a web page. The code and structure described is not really applicable for Word or Excel.
As for ActiveX control in Word and Excel, Tom had a suggestion for Excel. Word? Here is the situation.
There is an Image ActiveX control. You CAN change the backcolor. The Image control is always square - so you can not make a circle visual.
You COULD make a circle visual but loading an image into the Image control, and making the border clear.
But let's keep it fairly simple. So you have an Image control, and say make the background green. You DO have events with these. There is a _Click event. So when you click the control you can make code run.
As much as this seems wildly odd - and perhaps silly - you could have in the _Click event code to change the background. Note unless you explicitly reference the control in another module, you MUST put this in the ThisDocument module. The ThisDocument module handles ActiveX control natively - you can select them from the Object dropdown. The code would be like this:
Code:
Sub Image1_Click()
Dim sColor As String
sColor = InputBox("Please type in (text) red, yellow or green, and press OK.")
Select Case UCase(sColor)
Case "RED"
Image1.BackColor = &HFF&
Case "YELLOW"
Image1.BackColor = &HFFFF&
Case "GREEN"
Image1.BackColor = &HC000&
Case Else
MsgBox "An invalid input. Please click control again."
End Select
End Sub
NOTE: you can NOT - repeat can NOT - use normal VBA color constants, like wdRed, wdYellow. WHY....I have no idea. Seems amazingly stupid to me. But you can't. You must use hex or RGB, as in .BackColor = RGB(0, 128, 64). Interestingly, if you go to Properties of the control and copy the hex into code, it removes the 0's.
&H00000006& becomes &HFF&
Using "normal" color constants makes the control go black. Shrug...what can I say.
So there you go. You can make an ActiveX control change color with a click.
I still have to say....BIG DEAL. So what? I don't get it. Is this just a visual clue? What does this have to do with a document????????
Other Notes: You certainly could make a better user interface. This used an inputbox. As I have not got a clue how you were intending this to be used...how is it supposed to change...you mentioned a yes/no example..so I did a inputbox. You COULD use an actual userform with option buttons - that way you would not have to error trap for gibberish input. The user types in "Go to hell" etc etc.
Gerry