+ Reply to Thread
Results 1 to 22 of 22

Search using wildcard

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    11-13-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    464

    Re: Search using wildcard

    Private Sub CommandButton1_Click()
    
        Dim rngFilter As Range
        
        With Sheets("S04FLXLS")
                .AutoFilterMode = False
            Set rngFilter = .Range("a1:b" & .Rows.Count).End(xlUp)
        End With
        
        With rngFilter
            .AutoFilter Field:=1, Criteria1:=TextBox1.Value & "*"
            .Range("A1:N" & .Rows.Count).End(xlUp).SpecialCells(12).Copy Destination:=Sheet2.Range("A1")
            .AutoFilter
        End With
    
    End Sub
    I tried that last suggestion, and now I'm back to the entire header row being printed on Sheet 1 and nothing going onto Sheet 2.
    Last edited by tapsmiled; 07-29-2014 at 07:27 PM.

+ 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] Wildcard Search
    By yccyccycc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-12-2013, 02:22 AM
  2. If, And, wildcard search
    By zachvu in forum Excel General
    Replies: 4
    Last Post: 07-14-2011, 06:41 PM
  3. Wildcard search using vlookup
    By hammer180 in forum Excel General
    Replies: 6
    Last Post: 07-08-2011, 04:35 PM
  4. Excel 2007 : search data using wildcard and sum it
    By eddy82 in forum Excel General
    Replies: 1
    Last Post: 06-03-2010, 06:23 AM
  5. Wildcard search for IF command
    By Zyphon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-19-2008, 05:00 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