I like spin buttons. Use the spin up and down to cycle through the options
and display in a textbox.
Dim myOption As Integer
Dim DisplayText As String
Private Sub SpinButton1_SpinDown()
myOption = myOption - 1
If myOption = 0 Then myOption = 3
SetText
End Sub
Private Sub SpinButton1_SpinUp()
If myOption = 3 Then myOption = 0
myOption = myOption + 1
SetText
End Sub
Private Sub UserForm_Activate()
myOption = 1
SetText
End Sub
Sub SetText()
If myOption = 1 Then TextBox1.Text = "N/A"
If myOption = 2 Then TextBox1.Text = "On (complete)"
If myOption = 3 Then TextBox1.Text = "Off (pending/incomplete)"
End Sub
--
-John
http://jmbundy.blogspot.com
Please rate when your question is answered to help us and others know what
is helpful.
"jafsonic" wrote:
> I would like to allow a user to select data with 3 options. I've used
> checkboxes when the option is just on or off (incomplete or
> complete). Sometimes the data does not apply, so I'd like a
> "checkbox" which allows 3 conditions: N/A, on (complete), and off
> (pending/incomplete).
>
> I'm already using VBA macros to implement changes based on the
> checkboxes. It would be nice to tie code options based on a 3 (or
> more) position switch control. Is there such a thing?
>