ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 6,092
- Office Version
- 2024
- Platform
- Windows
I open my user form & my list box is populated with part numbers.
As i type in my Text Box the list box updates with what im typing.
What i am trying to do is once the search is complete carry out another search so it the looks like the image supplied
So i need to clear the value in the current Text Box.
If i use TextBox1.Value = "" it clears the Textbox & List box values are gone totaly.
If i use TextBox1.Value = 0 it clears the text that was there & replaces it with a 0 & the list box shows all values with 0
What am i doing wrong.
PLEASE ADVISE
Codes in use to help you assist me.
As i type in my Text Box the list box updates with what im typing.
What i am trying to do is once the search is complete carry out another search so it the looks like the image supplied
So i need to clear the value in the current Text Box.
If i use TextBox1.Value = "" it clears the Textbox & List box values are gone totaly.
If i use TextBox1.Value = 0 it clears the text that was there & replaces it with a 0 & the list box shows all values with 0
What am i doing wrong.
PLEASE ADVISE
Codes in use to help you assist me.
Rich (BB code):
Private Sub UserForm_Initialize()
myList = Range("Table6")
ListBox1.List = myList
TextBox1.SetFocus
End Sub
Rich (BB code):
Private Sub ResetFields_Click()
TextBox1.Value = ""
End Sub