+ Reply to Thread
Results 1 to 7 of 7

VB Code to search text and copy data

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    VB Code to search text and copy data

    Hello:

    NOTE : MY REQUIRE HAS CHANGED LITTLE SO REFER TO MY BELOW POST #7

    Please refer to attached file.
    I have list as shown in column A.
    I need VB code to do following:

    I will enter some starting character in cell D1 and code needs to list ONLY UNIQUE name with starting character as shown in D1.
    Example if i enter "2GLEN" then the result will be as shown in column F

    Let me know if you have any questions.
    Thanks.

    Riz
    Attached Files Attached Files
    Last edited by rizmomin; 03-18-2019 at 07:10 PM.

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: VB Code to search text and copy data

    See if this works for you.

    Please Login or Register  to view this content.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  3. #3
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,151

    Re: VB Code to search text and copy data

    Lalalalllaaa lalalalal ... lalalalal allalal ... ....

    In Sheet1 module:
    Please Login or Register  to view this content.
    In standard module:
    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor
    Join Date
    02-02-2016
    Location
    Indonesia
    MS-Off Ver
    Office 365
    Posts
    1,004

    Re: VB Code to search text and copy data

    You might want to use a textbox to do that, by using a textbox (and some code) you can search as you type, meaning each time you type a letter then the result will change accordingly, while using a cell you need to exit the cell first (or hit a button) to get the result.

  5. #5
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to search text and copy data

    Hello JLG:

    Works great, Thanks

    Riz

  6. #6
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: VB Code to search text and copy data

    Quote Originally Posted by rizmomin View Post
    Hello JLG:

    Works great, Thanks

    Riz
    You're welcome, You can comment out or delete the line for the MsgBox. It was only for testing.
    regards, JLG
    Last edited by JLGWhiz; 03-10-2019 at 09:04 AM.

  7. #7
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to search text and copy data

    Hello:

    Please refer to attached file.

    I need VB Code to do following.
    WIll select Item from cell D1.
    I need all items starting with text shown in cell D2 (with its UPC Code),pasted at first
    availble cell in column H

    Let me know if you have any questions.
    Thanks.

    R
    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. Replies: 5
    Last Post: 12-08-2016, 11:54 PM
  2. Replies: 2
    Last Post: 12-07-2016, 08:39 AM
  3. Code to search for matching values in two columns, take text from that row and copy
    By Excelsemi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-23-2014, 12:12 PM
  4. Replies: 4
    Last Post: 05-16-2014, 06:30 AM
  5. VBA Code - Search text & search number & search qty and result - Urgent Please
    By naresh73 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-15-2014, 10:51 AM
  6. Code to search for matching text in a table then copy next line
    By douglasm in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-27-2014, 12:10 PM
  7. Code to copy data from excel to website search box and run it one by one
    By kirtesh250187 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-18-2013, 08:42 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