Tony,
I assume you mean that you want the word Red or Blue or... inserted into
a textbox when you press the F2 or F3 or... key. Is this the correct
interpretation of your question? If so, this would be difficult with a
macro*, but you could use a vba procedure on the On Key Down event of
the textbox, something like this...
Private Sub YourControl_KeyDown(KeyCode As Integer, Shift As Integer)
Select Case KeyCode
Case vbKeyF2
KeyCode = 0
Me.YourControl = "Red"
Case vbKeyF3
KeyCode = 0
Me.YourControl = "Blue"
Case vbKeyF4
KeyCode = 0
Me.YourControl = "Green"
End Select
End Sub
* well, you could use an AutoKeys macro, but this would require the use
of the SendKeys macro action, which is generally not recommended