+ Reply to Thread
Results 1 to 2 of 2

VBA keyword search

Hybrid View

  1. #1
    Registered User
    Join Date
    01-25-2013
    Location
    NYC
    MS-Off Ver
    Excel 2013
    Posts
    7

    VBA keyword search

    Hi,

    I have a list of 19,000 conferences in an excel file. These conferences range from everything medical, agriculture, IT, science, legal, etc. I need to only produce a list of conferences that cover the mining industry.

    Column A has the event Name
    Column B has the corresponding website
    Column F has the event description
    Column G has the Event Production Company

    Keywords to search for: Mining, mine, mining industry, etc

    Is their a way with a formula or VBA to perform a search based on this list of conference names and descriptions, searching for particular keywords, and than after parsing through the entire list, produce a second list on another sheet of the properly identified events?

    As a second layer of search is it possible, if not to complex, to either Google the event name or parse the linked webpage for similar keywords and add that to the final list?

    Also I have attached demo data of the first 1,000 conferences.

    International List.xlsx

    Thank You
    Last edited by dapper2; 08-29-2013 at 12:02 PM.

  2. #2
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: VBA keyword search

    Maybe:
    Sub LookForMe()
    
    Dim strSearch As String
    Dim cel As Range
    Dim ws As Worksheet
    
    strSearch = Application.InputBox("Enter term to look for")
    
    Set ws = Worksheets.Add(, after:=Sheets(Sheets.Count))
    ws.Name = strSearch
    
    For Each cel In Me.UsedRange
        If InStr(1, cel.Value, strSearch) > 0 Then
            cel.EntireRow.Copy Destination:=ws.Range("A" & Rows.Count).End(xlUp).Offset(1)
        End If
    Next cel
        
    End Sub
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

+ 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. Replies: 6
    Last Post: 03-18-2014, 11:16 AM
  2. Excel 2007 : Search by keyword
    By cemccabe in forum Excel General
    Replies: 0
    Last Post: 05-16-2012, 02:07 PM
  3. Replies: 1
    Last Post: 12-27-2010, 08:53 AM
  4. Keyword search
    By 4sharkfins in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-22-2010, 09:17 PM
  5. search by keyword
    By SubliminalJones in forum Excel General
    Replies: 2
    Last Post: 12-29-2005, 12:29 PM

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