+ Reply to Thread
Results 1 to 21 of 21

how to do a vague look-up

Hybrid View

  1. #1
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: how to do a vague look-up

    Try the attached
    Sub test()
        Dim strSearch4 As String, k
        Dim c As Range
        Dim hs As Long
        Dim i As Long, counter As Long
        Application.ScreenUpdating = False
        k = Worksheets.Count
        Sheets(3).[g1].CurrentRegion.Offset(1).Clear
        strSearch4 = Worksheets(3).TextBox2.Value
        For i = 10 To k
           For Each c In Sheets(i).Range("F1:F100")
            If c.Value Like "*" & strSearch4 & "[BC]" Then
                counter = 1
                c(, -2).Resize(, 4).Copy Sheets(3).Range("G" & Rows.Count).End(xlUp)(2)
            End If
          Next
        Next
        If counter = 0 Then
            MsgBox "no info found, check the input"
        End If
        Application.ScreenUpdating = True
    End Sub
    Attached Files Attached Files

+ 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. How do I use the "Proper" function? The instructions are vague.
    By DaveB in forum Excel Formulas & Functions
    Replies: 30
    Last Post: 09-06-2005, 07:05 PM
  2. [SOLVED] How do I use the "Proper" function? The instructions are vague.
    By Polly in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  3. How do I use the "Proper" function? The instructions are vague.
    By DaveB in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 09-06-2005, 05:05 PM
  4. How do I use the "Proper" function? The instructions are vague.
    By Polly in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  5. How do I use the "Proper" function? The instructions are vague.
    By Polly in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  6. How do I use the "Proper" function? The instructions are vague.
    By Polly in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  7. How do I use the "Proper" function? The instructions are vague.
    By Polly in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 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