Hi when I run the code I get the "Not sub or function declared" when it's, I have 3 functions and the error just happens with this one
Public Function atleastOne(ParamArray params() As Variant) As Boolean
Dim checked As Boolean
For Each param In params
If param.Caption = Char(254) Then
checked = True
Next
If checked Then
MsqBox "Tiene que seleccionar una opción", "Error"
atleastOne = False
Else
atleastOne = True
End If
End Function
and I call the function here
Private Sub toPreg2_Click()
Dim isSelected As Boolean
isSelected = atleastOne(op1A, op1B, op1C, op1D, op1E)
End Sub