+ Reply to Thread
Results 1 to 7 of 7

Transfer data from one worksheet to another

  1. #1
    Registered User
    Join Date
    08-02-2010
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    4

    Transfer data from one worksheet to another

    Hello - any help will be appreciated.

    I need help creating a macro to transfer data from from worksheet into a new worksheet. Basically, I have one worksheet containing all data and need to:
    1. At each change in data - move data (all rows) to new worksheet
    2. Create a tab and rename tab using information from one of the cells
    3. Include header from main worksheet


    For example:

    Master File
    Column A Column B
    AA 1
    AA 2
    BB 3
    BB 4
    CC 5


    In the end, I would like to have a total of 4 tabs named: Master File, AA, BB and CC.

    Tab AA
    Column A Column B
    AA 1
    AA 2

    Is this possible? I attached a sample master file with tabs to show what I need.

    Thanks.
    Attached Files Attached Files
    Last edited by rylo; 08-09-2010 at 05:27 PM.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Running macros to transfer data from one worksheet to another

    Hi

    Here's one way.

    Please Login or Register  to view this content.
    rylo

  3. #3
    Registered User
    Join Date
    08-02-2010
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Running macros to transfer data from one worksheet to another

    This is great - thanks.

    Is there a way to tweak the code to add columns.
    My actual worksheet column range is A:DG

    I also need to change the above code to show the filter of Column CS (this is also the tab name).

  4. #4
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Running macros to transfer data from one worksheet to another

    Hi

    Update your example file to fully cover the design of your actual structure, and I'll have a look.

    rylo

  5. #5
    Registered User
    Join Date
    08-02-2010
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Running macros to transfer data from one worksheet to another

    Thanks.
    I've attached an updated sample.

    Basically, I need information from cell CS to be separated into different tabs - and the tabs named using the cell information.

    Does it matter how many rows I have? The actual worksheet has over 1000 rows.


    Thanks.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Running macros to transfer data from one worksheet to another

    Hi

    OK, See how this goes.

    Please Login or Register  to view this content.
    rylo

  7. #7
    Registered User
    Join Date
    08-02-2010
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Running macros to transfer data from one worksheet to another

    Sorry for the delay - but the macro worked perfectly.

    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