+ Reply to Thread
Results 1 to 11 of 11

Listview and textbox filter

  1. #1
    Registered User
    Join Date
    04-26-2017
    Location
    Milan
    MS-Off Ver
    Office 2013
    Posts
    47

    Listview and textbox filter

    hi, i would need some support with my filtering a listview with a textbox
    at the moment i am able to filter but the match starts from left while i would like to find all the matches based on my input.
    in the example below i don't have the possibility to filter by the word SOCKS since the previous characters would not match:

    DMT MN OUTDOOR NO SHOW SOCKS
    DMT MN OUTDOOR ANKLE SOCKS
    DMT MN OUTDOOR MISC ACC

    here below my code. is it possible to filter not starting from left but searching if the input is contained in the string?


    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by fbenzoni; 07-12-2023 at 07:07 AM.

  2. #2
    Banned User!
    Join Date
    05-13-2023
    Location
    Venera
    MS-Off Ver
    2007
    Posts
    79

    Re: Listview and textbox filter

    Please, upload an example Excel file.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,920

    Re: Listview and textbox filter

    Administrative Note:

    You should know the rules by now.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between [code]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/code] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    04-26-2017
    Location
    Milan
    MS-Off Ver
    Office 2013
    Posts
    47

    Re: Listview and textbox filter

    sorry, it's loaded now

  5. #5
    Registered User
    Join Date
    04-26-2017
    Location
    Milan
    MS-Off Ver
    Office 2013
    Posts
    47

    Re: Listview and textbox filter

    should be easier now with the file attached

  6. #6
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,064

    Re: Listview and textbox filter

    Still no code tags though...
    Everyone who confuses correlation and causation ends up dead.

  7. #7
    Registered User
    Join Date
    04-26-2017
    Location
    Milan
    MS-Off Ver
    Office 2013
    Posts
    47

    Re: Listview and textbox filter

    added, sorry for that

  8. #8
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,064

    Re: Listview and textbox filter

    Try changing this line:

    Please Login or Register  to view this content.
    to this:

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    04-26-2017
    Location
    Milan
    MS-Off Ver
    Office 2013
    Posts
    47

    Re: Listview and textbox filter

    tried but does not seem to change

  10. #10
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,064

    Re: Listview and textbox filter

    Sorry, not sure what I was thinking there - it should be:

    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    04-26-2017
    Location
    Milan
    MS-Off Ver
    Office 2013
    Posts
    47

    Re: Listview and textbox filter

    this works perfectly! thanks so much!

+ 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] Filter Listview based multiple combobox
    By hecgroups in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-02-2015, 11:09 AM
  2. [SOLVED] Help ListView Filter
    By Kimaos in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-20-2014, 04:41 AM
  3. Transfer data from listview to textbox
    By Jovillanueva in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-17-2014, 05:49 AM
  4. [SOLVED] error filter in listview
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-22-2013, 03:59 PM
  5. [SOLVED] Textbox enter, select item in ListView and pass the dice to Another Form
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-20-2013, 06:16 AM
  6. Filter Listview based on TextBox Value
    By ioncila in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-17-2012, 02:33 PM
  7. [SOLVED] VBA Excel - Textbox disappearing BEHIND listview control - Zorder is useless.
    By Radu in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-07-2005, 11:00 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