+ Reply to Thread
Results 1 to 3 of 3

Split Data in Home Sheet to Multiple Existing Sheets

  1. #1
    Registered User
    Join Date
    10-16-2012
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    2

    Split Data in Home Sheet to Multiple Existing Sheets

    Hey everyone, long time lurker but first time poster here. I've been interested in VBA for quite some time but have been avoiding it mostly because I understand so little of it. Anyways, I am interested in taking data that I will need to update every other week and splitting in to multiple sheets that already exist. 'RAWDATA' will be updated with thousands of lines of employee data that relates to their billable hours. I then need 'RAWDATA' to be split by StaffID and distributed to the corresponding sheets. The reason I don't want the data split into newly created sheets everytime is because next to each corresponding StaffID sheet (ex '178') there will be a sheet (ex '178SUM') which will be a summary of that employee's billable units linked to the raw employee data with formulas translating the billable units into what they will actually be paid for that period.

    I have explored quite a few threads here but haven't quite figured out how to apply them to my probelm. Also, I tried to use this as a guide but have failed so far...

    http://chandoo.org/wp/2012/05/14/vba...ltiple-sheets/

    I was hoping to use the code from the link above but the data for that link is in column C and my data is in column A. I wasn't sure how to fix their code to correspond to my data.

    The attachment shows my desired result. In the final product I will have many more StaffID's but this is just the initial attempt.

    Any help would be greatly appreciated!!! And hopefully, this can be a gateway into furthering my VBA education.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Split Data in Home Sheet to Multiple Existing Sheets

    this should work as long as all the sheets are already created.

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Registered User
    Join Date
    10-16-2012
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Split Data in Home Sheet to Multiple Existing Sheets

    Wow, that worked great, thanks! However I realized I missed an important step. Can you add some code that will tell me when and what StaffID does not have a corresponding sheet in the workbook? I will be constantly adding employees so I need it as a double check.

    Thanks again!

+ 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