+ Reply to Thread
Results 1 to 6 of 6

Copy lines of data based on a Cell

  1. #1
    Registered User
    Join Date
    03-11-2021
    Location
    Lisbon
    MS-Off Ver
    365
    Posts
    13

    Copy lines of data based on a Cell

    Hello,

    i have a GIANT database to work daily.

    I need to copy whole line of data based on the ID, the same ID can repeat many times in the database.

    So i have a DB full of data and based on ID i have to extract on full lines so i can work on them

    Capture.JPG

    I have to search many ID per day so it will save me much time.

    Tx in advance
    Attached Files Attached Files
    Last edited by MigueX; 03-29-2021 at 05:41 AM. Reason: Tag as Solved

  2. #2
    Valued Forum Contributor
    Join Date
    06-29-2014
    Location
    Australia
    MS-Off Ver
    MSO 365
    Posts
    1,098

    Re: Copy lines of data based on a Cell

    Hello MigueX,

    Here's a possibility. Place this code in a standard module and assign it to a button:-
    Please Login or Register  to view this content.
    Enter an ID into B1 in Sheet2, click on the button and the code will filter for the entered ID in sheet1, Column A and then display the relevant data in Sheet2.

    I hope that this helps.

    Cheerio,
    vcoolio.
    Last edited by vcoolio; 03-26-2021 at 08:26 AM.

  3. #3
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Copy lines of data based on a Cell

    Here's another option. Button has been placed on sheet2.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    03-11-2021
    Location
    Lisbon
    MS-Off Ver
    365
    Posts
    13

    Re: Copy lines of data based on a Cell

    Cool!

    Thanks guys, going to check this!

  5. #5
    Registered User
    Join Date
    03-11-2021
    Location
    Lisbon
    MS-Off Ver
    365
    Posts
    13

    Re: Copy lines of data based on a Cell

    Thanks alot guys it worked great

  6. #6
    Valued Forum Contributor
    Join Date
    06-29-2014
    Location
    Australia
    MS-Off Ver
    MSO 365
    Posts
    1,098

    Re: Copy lines of data based on a Cell

    You're welcome MigueX. I'm glad that we were able to assist and thanks for the rep.

    Cheerio,
    vcoolio.

+ 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. [SOLVED] Copy lines based on conditions? (with example)
    By LIL2606 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-12-2019, 03:10 AM
  2. Copy lines from data to sheet based on cell value
    By Jamesraywebber85 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-09-2018, 03:42 PM
  3. Insert new rows and copy over information based on number of lines in cell
    By rysg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-25-2017, 05:47 PM
  4. Copy individual lines from cell with broken lines by char(10)
    By jakopak in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-12-2015, 05:40 AM
  5. Copy lines based on a variable
    By jeskit in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2011, 06:26 AM
  6. Auto Hide/Show Lines based on Data in cell
    By tariqnaz2005 in forum Excel General
    Replies: 5
    Last Post: 12-29-2009, 03:30 AM
  7. Replies: 2
    Last Post: 11-18-2009, 05:30 PM

Tags for this Thread

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