+ Reply to Thread
Results 1 to 8 of 8

automatic copying rows to another worksheet

  1. #1
    Registered User
    Join Date
    01-06-2016
    Location
    US
    MS-Off Ver
    Excel 2016
    Posts
    4

    automatic copying rows to another worksheet

    I have a worksheet with approximately 10-12 columns that contains information on all members to an organization. I would like to make separate worksheets that automatically populate with items from each of these rows when certain information is contained in one row. For example, if column g contains an "A", I would like all those rows with an A in column G to be on one worksheet and then another worksheet with contain another qualifier. I would like this to automatically populate to the separate worksheets once I have changed worksheet 1 (my main worksheet).

    I am using Excel 2016.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,893

    Re: automatic copying rows to another worksheet

    your explanation is only partly cleat. It would help significantly if you attached a sample worksheet showing the before and after and a clear explanation of your criteria for moving data to new worksheets.



    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    01-06-2016
    Location
    US
    MS-Off Ver
    Excel 2016
    Posts
    4

    Re: automatic copying rows to another worksheet

    The first worksheet is the master. I want to be able to sort it by status and each different status be on a separate worksheet similar to the additional worksheets on my test.
    Attached Files Attached Files

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,893

    Re: automatic copying rows to another worksheet

    Try this:
    Please Login or Register  to view this content.
    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    To run the Excel VBA code:
    1. Press Alt-F8 to open the macro list
    2. Select a macro in the list
    3. Click the Run button
    Last edited by alansidman; 01-06-2016 at 10:54 PM.

  5. #5
    Registered User
    Join Date
    01-06-2016
    Location
    US
    MS-Off Ver
    Excel 2016
    Posts
    4

    Re: automatic copying rows to another worksheet

    I don't know anything about VBA code and had hoped there would be a simple way to make a formula. I guess I don't follow all of the above.

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,893

    Re: automatic copying rows to another worksheet

    What don't you understand? Code does what you asked. Instructions for installation are clear. What you requested is not achievable with a simple formula Have you tried using the MACRO?

  7. #7
    Registered User
    Join Date
    01-06-2016
    Location
    US
    MS-Off Ver
    Excel 2016
    Posts
    4

    Re: automatic copying rows to another worksheet

    OK, I updated the information with all the extra worksheets that I have and was able to make it work. Is there a way to have the Excel file automatically update each time changes are made to the file without re-running the macro. Here is my problem. This needs to be user friendly so others can use it. For example, when I go in and re-run the macro, it creates duplicate entries under each worksheet. I know how to remove the duplicates but others will not know how to do some of these functions. I am debating whether using Excel or an Access database would be more user friendly to those not familiar with computer programs.

  8. #8
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,893

    Re: automatic copying rows to another worksheet

    Put this code in the worksheet change event for all names worksheet.
    Please Login or Register  to view this content.
    Last edited by alansidman; 02-28-2016 at 10:02 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. Copying Certain Rows to New Worksheet
    By h.noor in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-10-2015, 05:36 PM
  2. Replies: 3
    Last Post: 10-16-2012, 09:02 AM
  3. Copying Rows from One Worksheet to Another
    By NMorales76 in forum Excel General
    Replies: 6
    Last Post: 05-31-2012, 12:56 PM
  4. [SOLVED] Copying selected cells from multiple rows and columns from worksheet to worksheet
    By janlindgren in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-25-2012, 02:58 AM
  5. Copying rows to another worksheet
    By ashy_16in in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-22-2011, 12:11 AM
  6. Copying rows from another worksheet
    By morbo in forum Excel General
    Replies: 1
    Last Post: 01-27-2010, 03:40 PM
  7. Copying rows to another worksheet
    By solidgold10287 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-21-2007, 04:19 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