+ Reply to Thread
Results 1 to 5 of 5

Search Workbook for Text entered in Embedded Textbox

  1. #1
    Registered User
    Join Date
    08-10-2011
    Location
    Little Rock Arkansas
    MS-Off Ver
    Excel 2003
    Posts
    61

    Search Workbook for Text entered in Embedded Textbox

    I'm trying to search multiple worksheets for a Text String entered into an Embedded Textbox, and go to the Worksheet and Cell the data was found in. I've ran across a vlookupworkbook function, but I couldn't understand how to make it work.

  2. #2
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,386

    Re: Search Workbook for Text entered in Embedded Textbox

    Try to put this behind that TextBox. When you click "Return" it starts searching

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-10-2011
    Location
    Little Rock Arkansas
    MS-Off Ver
    Excel 2003
    Posts
    61

    Re: Search Workbook for Text entered in Embedded Textbox

    ok, that works, Thanks!
    To expand, the data I put in the textbox looks like this AB/WXYZ/123456/ZA. How do I only enter the 123456 in the textbox? Maybe eventually the letters may change, so, if the long string is in it searches that way, and then if only the numbers are in it still works but could pick up duplicates. maybe the built in form that the error message comes back with not found could list the pages the duplicates were found in and I choose which page to go to?

  4. #4
    Registered User
    Join Date
    08-10-2011
    Location
    Little Rock Arkansas
    MS-Off Ver
    Excel 2003
    Posts
    61

    Re: Search Workbook for Text entered in Embedded Textbox

    Somehow I fixed this. I changed that 1 to a 2. I'm not sure what that changed. I was reading something about xlwhole or xlpart, and I think the 2 is part.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-10-2011
    Location
    Little Rock Arkansas
    MS-Off Ver
    Excel 2003
    Posts
    61

    Re: Search Workbook for Text entered in Embedded Textbox

    I have a problem, when I do a search for the ID, and if the worksheet is hidden it errors. I have this code that opens the worksheet I choose in the Listbox, but, only the primary of the two worksheets are in the Listbox, and presumably, there will be an ID searched that resides in the secondary sheets.

    I can build a table in the Datasheet with the primary and secondary sheet names, primary in column a, and the secondary in column b, so if the worksheet name is in the secondary column to call the worksheet name in column a.

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Delete Text that is entered in TextBox
    By romsky26 in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 09-28-2021, 08:59 AM
  2. Timestamp being entered into textbox at the end of the text string being entered.
    By JJFletcher in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-27-2021, 07:25 AM
  3. [SOLVED] Updating text in shape using data entered in a textbox in userform.
    By Awni in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-23-2016, 06:48 AM
  4. [SOLVED] Search column for entered value and return results to textbox in userform
    By MIFF3436 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-11-2015, 06:35 AM
  5. SUMIF with embedded text search criteria
    By markistanbul in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-24-2013, 08:51 AM
  6. Search a range of cells for embedded text from list
    By Upsetspy in forum Excel General
    Replies: 2
    Last Post: 10-11-2011, 09:52 PM
  7. VBA Code to limit amount of text or numbers entered into a textbox?
    By funkymonkUK in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-19-2005, 07:39 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1