+ Reply to Thread
Results 1 to 2 of 2

For Loop to Copy Paste Data from sheet to another

  1. #1
    Registered User
    Join Date
    11-28-2018
    Location
    Netherlands
    MS-Off Ver
    Office 13
    Posts
    30

    For Loop to Copy Paste Data from sheet to another

    Hi all,

    In cell B1 and B2 there is a data validation list where the user will select the client name and Type.

    Capture.JPG

    I am trying to get a macro to use what the User selects in those drop downs as Conditions and Loop through the "Database" sheet Copy Pasting all Lines that match those Conditions into Summary Cell N4

    Capture2.JPG

    In the first photo, with the first drop down, the column on the Database that corresponds to that is Database Column C, in the second drop down the corresponding column is Database Column Y

    The thing is I would only need to copy the data from column A, C, F, G, H, I, W, X, Y in Database, not the entire line.

    Any help here is much appreciated. I have attached the Sample Spreadsheet for your reference.
    Attached Files Attached Files
    Last edited by stein7; 09-21-2019 at 11:09 PM.

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

    Re: For Loop to Copy Paste Data from sheet to another

    Hello Stein7,

    See if the following code, assigned to the button, will do the task for you:-

    Please Login or Register  to view this content.
    I hope that this helps.

    Cheerio,
    vcoolio.
    Last edited by vcoolio; 09-22-2019 at 05:03 AM.

+ 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] Loop Thru Rows - Copy / Paste Other Sheet
    By Logit in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-24-2018, 11:48 PM
  2. Replies: 3
    Last Post: 11-06-2014, 01:23 AM
  3. [SOLVED] Loop through entire sheet, Insert row, copy row data, paste row data, delete row
    By Hyperdude in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-19-2012, 01:46 AM
  4. [SOLVED] Loop copy and paste in new sheet
    By tonnerre2000 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-18-2012, 12:22 AM
  5. Find-Loop copy & paste in an another sheet
    By gill389 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-19-2011, 06:31 PM
  6. Loop Program to Copy/Paste from One Sheet to Another
    By smlaff01 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-13-2007, 11:33 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