Textbox to search Worksheet

nuttycow13

New Member
Joined
Feb 6, 2012
Messages
47
Hi i am trying to get a text box to search a worksheet and read the information in that row and input it to other text boxes. at this time all i need to get working is to read the text box and search on the worksheet. so far i have:

Range("B1").Find(Columns("b")(Find_Printer.Text, , , xlWhole, , , True).Row, 1)(xlDown).Select

but this does not work at all.

I need to read column B for what is in Find_Printer text box.

If anyone could help me that would be great.

Thanks in advance.
 

taurean

Well-known Member
Joined
Jun 17, 2011
Messages
2,179
Office Version
365, 2016
Platform
Windows
Try something like:
Code:
Dim r As Range
Set r = Columns("B:B").Find(Find_Printer.Text, , , xlWhole, , , True)
This will set the found cell to variable r.
 

Forum statistics

Threads
1,081,943
Messages
5,362,262
Members
400,674
Latest member
Thumper007

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top