Results 1 to 3 of 3

Setting a text box value in a filter

Threaded View

  1. #1
    Registered User
    Join Date
    06-17-2010
    Location
    Bristol, England
    MS-Off Ver
    Excel 2003
    Posts
    13

    Setting a text box value in a filter

    Can anyone help me with this please.

    I am setting up a filter and what I need is the value from a text box that is entered to be searched in column C, This is the code I come up with so far but I cant get it to work..

    Thanks for your help.

    Perbags

    Private Sub CommandButton1_Click()
    
    
     Dim Site As String
        
        TextBox1.Text = Site
        
      Sheets("Sitedata").Select
       Range("A2").Select
       Range("2:2000").AutoFilter 3, "<>(Site)"
          
    
    End Sub
    Last edited by perbags; 07-20-2010 at 05:57 AM. Reason: solved!

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