Results 1 to 6 of 6

VBA Autofilter

Threaded View

SamuelT VBA Autofilter 07-26-2007, 11:54 AM
ilovedurango look at a previous post I... 07-26-2007, 01:57 PM
boylejob SamuelT Private Sub... 07-26-2007, 05:11 PM
SamuelT Hi, Thanks for you... 07-27-2007, 04:53 AM
boylejob SamuelT, I ran this... 07-27-2007, 08:59 AM
boylejob SamuelT I thought I would... 07-27-2007, 09:11 AM
  1. #1
    Valued Forum Contributor
    Join Date
    09-23-2005
    Location
    Bristol, UK
    MS-Off Ver
    2007
    Posts
    664

    VBA Autofilter

    Hi all,

    I have a UserForm that I want my colleagues to enter a phrase and it will bring up anything in a column with the phrase/word in it - i.e. *whatever* - by applying the custom autofilter to a column.

    I've built a form, etc, but can't work out the VBA I need to assign to the 'Find' button to apply the custom autofilter.

    I currently have this attempt:

    Private Sub cmdSearchForm1_Click()
     
    Dim sData As String
       
    
       Selection.AutoFilter Field:=2, Criteria1:=sData
    
    End Sub
    ...but it basically filters to NonBlanks.

    Can anyone help?

    TIA,

    SamuelT
    Last edited by SamuelT; 07-26-2007 at 12:08 PM.

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