+ Reply to Thread
Results 1 to 6 of 6

Find the code that similar with data base

  1. #1
    Forum Contributor
    Join Date
    10-29-2012
    Location
    Laos
    MS-Off Ver
    Excel 2003,2010,2013
    Posts
    126

    Find the code that similar with data base

    Hi all friend

    please help me
    Attached Files Attached Files

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Find the code that similar with data base

    Hi, yukioh,

    maybe something like this can get close to what you want:
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Forum Contributor
    Join Date
    10-29-2012
    Location
    Laos
    MS-Off Ver
    Excel 2003,2010,2013
    Posts
    126

    Re: Find the code that similar with data base

    Thank you for your help HaHoBe,
    your code is working, now i try to run it, and it see some duplicated code,
    it is possible that when i changed word "PENSION" then code still working like i change "PENSION" to "EMPLOYEE" or other words...

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Find the code that similar with data base

    Hi, yukioh,

    you could use the split function if there will always be something you donīt want to search for as first item in the cell and work the array like used in
    Please Login or Register  to view this content.
    except that you start the loop with either 0 or LBound(var). If you use 1 you could put in any item you want and need not care for the name or the length of the item but may loose a search if nothing preceeds the company name.

    Ciao,
    Holger

  5. #5
    Forum Contributor
    Join Date
    10-29-2012
    Location
    Laos
    MS-Off Ver
    Excel 2003,2010,2013
    Posts
    126

    Re: Find the code that similar with data base

    How to do HaHoBe
    i don't know much about VBA

  6. #6
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Find the code that similar with data base

    Hi, yukioh,

    you may alter the code like this
    Please Login or Register  to view this content.
    And if you are a bit curious about a different way to maybe solve the problem you may have a look at Searching Using Soundex Codes and the demo workbook.

    Ciao,
    Holger

+ Reply to Thread

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