+ Reply to Thread
Results 1 to 2 of 2

Master sheet to split sheets back to another master sheet

  1. #1
    FurRelKT
    Guest

    Master sheet to split sheets back to another master sheet

    Hello Experts,
    I am new to Excel and VBA, i have a question pertaining to the split
    sheets.

    I have a output file called output, my wkb has one sheet/tab called
    'MIS'

    I have a macro to pull in the output file and add it to the workbook.
    my wkb now has 2 sheets/tabs.
    OUTPUT and MIS

    i have a macro that has split that 'output' sheet into many sheets
    given a unique value in the output sheet. It is actually the
    department, so i have multile sheets that have the different depatments
    in one workbook.

    the tabs could be as follows...
    output / MIS / 01-210 / 01-215 / 01-220 /..etc/ (could be 20
    departments,it just depends on who ran the report to get the output
    data.)

    Now, the MIS sheet is still blank...

    The users can make adjustments to their department sheets, i have a
    diolog box that has a button.
    I want that button to take ranges from the department sheets and put
    them into the MIS master sheet.
    The ranges of each sheet will be the same columns but the amount of
    rows will change.

    So i would copy:
    All the sheets (depts- 01-210,01-215,01-210,etc...) will use columns
    A,F,G,H,I,J ,but won't know how many rows.

    and then paste to the MIS sheet
    to the colums A:F


    [I have tried doing the recorder but I can't do that since i won't know
    exactly what the tabs or departments will be until i split the sheet.
    multiple people will use this and the departments will be different for
    each one doing the splitting. ]

    I hope that i am explaining myself okay...so now...i am stuck, i don't
    know the tab or department until its made, so how can i automate this?


    Thank you for taking the time to help me out here, since i am new. Any
    help would really be appreciated.

    Keri


  2. #2
    Valued Forum Contributor
    Join Date
    09-19-2008
    Location
    It varies ...
    MS-Off Ver
    Office365 - 64bit
    Posts
    862

    Re: Master sheet to split sheets back to another master sheet

    Hi - you can cycle through the worksheets and do something with them unless they are the MIS or OUTPUT sheet. For copying columns there are lots of ways to do it. If you want to copy different rows per column you can check the row of each and copy the columns one by one; if you just want to copy down to the last row of the sheet you can use UsedRange.Rows.Count.

    If you step through the code below you should be able to follow it demonstrate both options:
    Please Login or Register  to view this content.
    MatrixMan.
    --------------------------------------
    If this - or any - reply helps you, remember to say thanks by clicking on *Add Reputation.
    If your issue is now resolved, remember to mark as solved - click Thread Tools at top right of thread.

+ 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