+ Reply to Thread
Results 1 to 3 of 3

Searching Within Cells and copying to a list

  1. #1
    Forum Contributor
    Join Date
    01-21-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    116

    Searching Within Cells and copying to a list

    Hi.

    I have some code, see below which runs well. It has a Dropdown = "ComboBox1" with header columns and a search box "TextBox1"

    It only searches the beginning of the data in the cell. How could it be modified to search within the cell.

    For example if I have a dropdown of Address and the data is 123 High Street, London. and I search for London in won't match because the cell starts with 123.

    Any Help?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,925

    Re: Searching Within Cells and copying to a list

    Instead of using advanced filter, you may have to loop through the data doing the match in the reverse direction and using INSTR. It's a slower process since you have to slug it out cell-by-cell rather than copying the range, but it's the only way I can think of. You might also investigate LIKE and pattern matching to get even more flexibility.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Contributor
    Join Date
    01-21-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    116

    Re: Searching Within Cells and copying to a list

    Thank you for your time and suggestions.

+ 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: 02-19-2014, 11:47 AM
  2. Searching a column of cells and reporting results in a list
    By utahmoose in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-14-2013, 07:14 PM
  3. Problem searching, copying and pasting selected cells between sheets
    By Torben_Fred in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-07-2013, 05:55 PM
  4. Replies: 6
    Last Post: 08-08-2012, 09:15 AM
  5. matching string from a list and copying adjacent cells
    By Derivatives in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-13-2011, 11:07 AM
  6. Searching cells then copying/pasting and deleting macro
    By JayWeb in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-27-2009, 05:40 AM
  7. Copying Data from Cells to Sharepoint List
    By nosstech in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-25-2009, 10:38 PM
  8. [SOLVED] Macro copying cells to a list in another spreadsheet
    By Mac in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-17-2006, 06:25 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