+ Reply to Thread
Results 1 to 3 of 3

VBA to move data from master sheet to specific sheet

  1. #1
    Registered User
    Join Date
    03-02-2014
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    2

    VBA to move data from master sheet to specific sheet

    Any help would be greatly appreciated.

    Hello,

    I am trying to build a workbook that will copy data from the master sheet (NBR) to the individual sheet (Agent Name). Every week I am going to place new data into the master sheet that is gathered from a web form my agents fill out. I would like the macro to run every time the workbook is opened and the NEW data to be placed at the top of the agents specific tab (essentally sorted by date, newest to oldest). I am fairly decent at writing logic formulas with calculations but when it comes to VBA I struggle. Thanks in advance for any help.

    NBR4.xlsx

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,483

    Re: VBA to move data from master sheet to specific sheet

    Check out the attatch example.

    Click the button to run the code.

    I have changed some of the sheet names to match the names under Agent column in "NBR" sheet as the names have to match in order for the code to find the correct sheet.

    The NBR sheet and agent sheets do not match, this part of the code will have to change after so the correct info goes into the correct columns, right now the code will just copy A1:AA1 and put it into the first empty row of the agents sheet.

    When you run the code as is you will notice some of ther sheets do not get data because the sheet names do not match the names under the agent column.

    1-correct the sheet names so they match the agent names
    2-determin what info you want into the agent sheets

    The code can be edited later to sort each sheet.

    This is the code used in the attached example.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-02-2014
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: VBA to move data from master sheet to specific sheet

    Thanks davesexcel,

    I corrected all the sheet names and the macro runs good.

    Now is there a way to only have just certain cells copied over and also is there a way to not duplicate the same data.

+ 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. Move data from master job sheet to a print sheet
    By Steve6060 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-31-2013, 10:21 PM
  2. copy data from multiple sheet to master sheet with specific columns only
    By sinha.riteshabap in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-31-2013, 06:59 AM
  3. [SOLVED] Move rows of data from one sheet to another based on specific values of sheet
    By buntalan80 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-26-2013, 06:21 AM
  4. I need a macro to move data from a master sheet.
    By tirwin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-26-2012, 12:23 AM
  5. auto move data from master sheet to other sheets in excel 2007
    By tjm61 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 02-14-2011, 09:55 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