+ Reply to Thread
Results 1 to 6 of 6

copy rows from 1 sheet to multiple sheets

  1. #1
    Registered User
    Join Date
    05-04-2010
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    3

    copy rows from 1 sheet to multiple sheets

    Ok, I have been asking around for weeks with no answers, only I need Macros. I have never worked with macros and have no idea how to start.

    This is my problem:

    I have a workbook with many sheets. I currently work in Afghanistan for the military. I train soldiers on the vehicles they operate here.

    On my first sheet I have the place they were trained, last name, first name, rank, MOS, Date started, date ended, and test score. All students will go on this master sheet. I then have one sheet for each location (total of 5 locations) I want to be able to input all the info on Sheet 1 and once I type in the location that each student was trained it will automatically copy that whole row to the other sheet with the same location.

    Example:

    Please Login or Register  to view this content.

    Once I type this in the master sheet i was each row to be copied to another sheet

    All Florida copy to one sheet
    All Texas copy to one sheet
    All New York copy to one sheet.

    Hope i explained it enough,

    thanks in advance for your help

    GH

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: copy rows from 1 sheet to multiple sheets

    You don't need individual sheets,just use AutoFilter
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: copy rows from 1 sheet to multiple sheets

    Roy is right, once people discover the Data > Filter > Autofilter, they often find it is easy and convenient to work with the data right there on the master sheet. You can filter column A by any single value you want pretty easily. Check it out.

    If you find you still really want standalone, I have a stock macro for this:That page has the code and a sample workbook, I'm pretty sure the code will do what you want as is.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    05-04-2010
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: copy rows from 1 sheet to multiple sheets

    Quote Originally Posted by royUK View Post
    You don't need individual sheets,just use AutoFilter
    Yes, I understand how to use autofilter, but that's not how I want to use the spreadsheet, thanks for the input
    Last edited by GatorHunter; 05-04-2010 at 04:57 AM.

  5. #5
    Registered User
    Join Date
    05-04-2010
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: copy rows from 1 sheet to multiple sheets

    Quote Originally Posted by JBeaucaire View Post
    Roy is right, once people discover the Data > Filter > Autofilter, they often find it is easy and convenient to work with the data right there on the master sheet. You can filter column A by any single value you want pretty easily. Check it out.

    If you find you still really want standalone, I have a stock macro for this:That page has the code and a sample workbook, I'm pretty sure the code will do what you want as is.
    I don't understand what I need to change on the sample macro code, sorry, never worked with macros

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: copy rows from 1 sheet to multiple sheets

    Probably all you'll need to edit is the Sheets("Data") reference near the top...change "Data" to whatever the name of your master data sheet is.... or change your sheet name to "Data" and use the macro as is.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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