Hi Masters,
I have a vbs code for user form search:
Ia pooling data only for January, and I need to pull data for February, march, April. Please help?
Private Sub TextBox1_Change()
Dim i As Long
Me.TextBox1 = Format(StrConv(Me.TextBox1, vbLowerCase))
Me.ListBox1.Clear
Me.ListBox1.AddItem "OEM Name"
Me.ListBox1.List(0, 1) = "Platform"
Me.ListBox1.List(0, 2) = "Jan"
Me.ListBox1.List(0, 3) = "Feb"
Me.ListBox1.List(0, 4) = "Mar"
Me.ListBox1.Selected(0) = True
For i = 2 To Sheet1.Range("A1000000").End(xlUp).Row
For X = 1 To Len(Sheet1.Cells(i, 1))
a = Me.TextBox1.TextLength
If LCase(Mid(Sheet1.Cells(i, 1), X, a)) = Me.TextBox1 And Me.TextBox1 <> "" Then
Me.ListBox1.AddItem Sheet1.Cells(i, 1)
Me.ListBox1.List(ListBox1.ListCount - 1, 1) = "" & Sheet1.Cells(i, 2)
Me.ListBox1.List(ListBox1.ListCount - 1, 2) = "" & Sheet1.Cells(i, 3)
End If
Next X
Next i
End Sub
Private Sub UserForm_Click()
End Sub
I have a vbs code for user form search:
Ia pooling data only for January, and I need to pull data for February, march, April. Please help?
Private Sub TextBox1_Change()
Dim i As Long
Me.TextBox1 = Format(StrConv(Me.TextBox1, vbLowerCase))
Me.ListBox1.Clear
Me.ListBox1.AddItem "OEM Name"
Me.ListBox1.List(0, 1) = "Platform"
Me.ListBox1.List(0, 2) = "Jan"
Me.ListBox1.List(0, 3) = "Feb"
Me.ListBox1.List(0, 4) = "Mar"
Me.ListBox1.Selected(0) = True
For i = 2 To Sheet1.Range("A1000000").End(xlUp).Row
For X = 1 To Len(Sheet1.Cells(i, 1))
a = Me.TextBox1.TextLength
If LCase(Mid(Sheet1.Cells(i, 1), X, a)) = Me.TextBox1 And Me.TextBox1 <> "" Then
Me.ListBox1.AddItem Sheet1.Cells(i, 1)
Me.ListBox1.List(ListBox1.ListCount - 1, 1) = "" & Sheet1.Cells(i, 2)
Me.ListBox1.List(ListBox1.ListCount - 1, 2) = "" & Sheet1.Cells(i, 3)
End If
Next X
Next i
End Sub
Private Sub UserForm_Click()
End Sub