Hi,
I have created a userform with a check box which when selected returns either "TRUE" or "FALSE". I need it to return Yes or No.
Is there a way to do this please?
Thanks in advance.
Hi,
I have created a userform with a check box which when selected returns either "TRUE" or "FALSE". I need it to return Yes or No.
Is there a way to do this please?
Thanks in advance.
Where do you want this "Yes"/"No" returned?
If you want it returned to a cell, code like this should work
![]()
Private Sub CheckBox1_Click() Range("A1") = IIf(CheckBox1.Value, "Yes", "no") End Sub
_
...How to Cross-post politely...
..Wrap code by selecting the code and clicking the # or read this. Thank you.
Hi,
Thank you for the reply. The checkbox already has code attached to it:
In order to return a value onto a range within a sheet.![]()
ws.Range("Pact1ActName").Cells(Me.SelectAct1.ListIndex + 1, 1).Offset(0, 8) = Me.Comp11.Value
Is there a way to add your code to it? I'm new to vba and can't work it out?
Thanks in advance.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks