+ Reply to Thread
Results 1 to 3 of 3

text box filter what i type exactly

  1. #1
    Forum Contributor
    Join Date
    11-18-2014
    Location
    alex
    MS-Off Ver
    excel
    Posts
    135

    text box filter what i type exactly

    I want vba code that make text box filter exactly number put in it in column e
    And any kind of number :
    Number store as number
    And number store as text
    For example
    When I type 59
    It filter those item which price only 59 not " 599 or 590"
    Attached Images Attached Images

  2. #2
    Registered User
    Join Date
    01-09-2014
    Location
    miami
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: text box filter what i type exactly

    In developer mode, right click that text box, click view code.

    Ignore the name of the subprocedure below, copy the contents of that subprocedure into the code window that opens. This will update the filter whenever the text box is changed.

    Adjust the columns as desired in the range.
    Adjust the name of the textbox that you are using to match the one on the sheet. the name of the textbox should match the name of the sub procedure that is auto generated upon clicking view code in first step above.

    Private Sub columnETextBox_Change()
    If columnETextBox.Value = "" Then
    ActiveSheet.Range("A:H").AutoFilter Field:=5
    Else
    ActiveSheet.Range("A:G").AutoFilter Field:=5, Criteria1:=columnETextBox.Value
    End If
    End Sub
    Last edited by miamimanni; 07-24-2015 at 11:03 AM.

  3. #3
    Forum Contributor
    Join Date
    11-18-2014
    Location
    alex
    MS-Off Ver
    excel
    Posts
    135

    Re: text box filter what i type exactly

    many thanls is not enouph for you

+ 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 as you type letter
    By sterio in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-19-2015, 04:07 AM
  2. Replies: 1
    Last Post: 12-12-2014, 06:46 AM
  3. [SOLVED] Filter Table as i type in textbox1 but when erasing the text filter should be unfilter
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-17-2014, 09:08 AM
  4. Replies: 2
    Last Post: 04-24-2013, 01:36 PM
  5. [SOLVED] diff type of filter
    By zazzz in forum Excel General
    Replies: 2
    Last Post: 10-11-2012, 10:14 AM
  6. Replies: 3
    Last Post: 09-03-2010, 12:39 PM
  7. How can i filter a list as i type.
    By Deanobey in forum Excel General
    Replies: 1
    Last Post: 10-07-2009, 09:58 AM

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