+ Reply to Thread
Results 1 to 5 of 5

Using Master Sheet to populate other worksheets in a workbook

  1. #1
    Registered User
    Join Date
    09-18-2011
    Location
    SW FL
    MS-Off Ver
    Excel 2007
    Posts
    15

    Using Master Sheet to populate other worksheets in a workbook

    I use Excel to store student data at our school in a workbook titled 'Sample Student Master'. There is one worksheet titled 'Master' that contains all the current student data. We have teachers who would like a worksheet with only students assigned to their class. Currently, we have been copying this data to their worksheet and have to do this each time student information is changed. I would like to create a macro or use VBA to automatically populate and change the data each time a change is made so I know the teacher sheets are up to date. I have NO experience using VBA or macros and was wondering if someone could help? I have attached a sample worksheet.
    Attached Files Attached Files

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Using Master Sheet to populate other worksheets in a workbook

    Try this code
    Please Login or Register  to view this content.
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose View | Macros
    Select a macro in the list, and click the Run button
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    09-18-2011
    Location
    SW FL
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Using Master Sheet to populate other worksheets in a workbook

    Thanks arlu1201. The code works perfectly.

    I do have a couple of questions about how to maintain these worksheets. Do I have to run the VBA code each time I make a change to the 'Master' worksheet? If so, do I have to delete the previously created 'Teacher' worksheets or does Excel overlay them with the updated data?

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Using Master Sheet to populate other worksheets in a workbook

    Its very simple. Each time you make any changes, just run the macro.

    Even if you have a new teacher added, the code will take care of it for you.

  5. #5
    Registered User
    Join Date
    09-18-2011
    Location
    SW FL
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Using Master Sheet to populate other worksheets in a workbook

    Great - I've tested it and it performs as we need it. Thanks again!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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