+ Reply to Thread
Results 1 to 4 of 4

Search and retrieve information from columns in Excel into list view (wildcards VBA)

  1. #1
    Registered User
    Join Date
    03-08-2011
    Location
    lancs
    MS-Off Ver
    Excel 2007
    Posts
    6

    Search and retrieve information from columns in Excel into list view (wildcards VBA)

    Hi I am fairly new to vba so bare with me.

    I currently have a button on a userform which looks at what a user has typed in a text box and checks a chosen column for that word.

    However at the moment the user has to write exactly the same as what is written in the cell for it to recognise it.
    I would like to be able to write part of a word into the search box and it bring up all records that contain that word into a list box.

    my current code


    Please Login or Register  to view this content.
    Any help is thoroughly appreciated

    Thanks
    L
    Last edited by martinl4; 03-11-2011 at 08:51 AM.

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Search and retrieve information from columns in Excel into list view (wildcards V

    hi, martinl4, the find method has the following argument:
    LookAt Optional Variant. Can be one of the following XlLookAt constants: xlWhole or xlPart.
    At the moment you use xlWhole so it searches for complete match...
    For details check VB help file "Find method"

  3. #3
    Registered User
    Join Date
    03-08-2011
    Location
    lancs
    MS-Off Ver
    Excel 2007
    Posts
    6

    Smile Re: Search and retrieve information from columns in Excel into list view (wildcards V

    ahhh thank you problem solved :D

  4. #4
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Search and retrieve information from columns in Excel into list view (wildcards V

    if your problem is solved please mark the thread as solved (see Forum rules for details)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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