I am using this to fill a text box with a delimited string.
It results in the following: IN ('*','Budget/Engineer','Design Build','Lost','Not Tracking','Omit','Open/Quote','Option','Plan & Spec.','REBID','Won')Code:Private Sub BidStatus_Click() Dim Items As Variant Dim Item As Variant ' NB: Make this a Private variable of the code module. Dim filter1 As String If Me.BidStatus.Column(0) = "*" Then Dim j With Me.BidStatus For j = 0 To .ListCount - 0 .Selected(j) = True Next End With End If End Sub
I don't want the asterisk included in that statement. I've tried replacing (using Replace) it with nothing, to no avail (Error "Argument not optional").
Any other ideas that I can try? Thank you for your time!Code:Dim str As String str = Me.filter1 Replace InStr(1, str, "*", vbTextCompare)