Results 1 to 15 of 15

Copy rows from 1 sheet by Group

Threaded View

rogerabhi Copy rows from 1 sheet by... 08-19-2010, 07:07 AM
JBeaucaire Re: Copy rows from 1 sheet by... 08-19-2010, 10:01 AM
rogerabhi Re: Copy rows from 1 sheet by... 08-20-2010, 02:18 AM
JBeaucaire Re: Copy rows from 1 sheet by... 08-20-2010, 09:57 AM
rogerabhi Re: Copy rows from 1 sheet by... 08-31-2010, 12:21 AM
JBeaucaire Re: Copy rows from 1 sheet by... 08-31-2010, 09:51 AM
rogerabhi Re: Copy rows from 1 sheet by... 08-31-2010, 01:40 PM
JBeaucaire Re: Copy rows from 1 sheet by... 08-31-2010, 02:06 PM
rogerabhi Re: Copy rows from 1 sheet by... 09-13-2010, 09:48 AM
JBeaucaire Re: Copy rows from 1 sheet by... 09-13-2010, 11:53 AM
JBeaucaire Re: Copy rows from 1 sheet by... 09-13-2010, 12:00 PM
rogerabhi Re: Copy rows from 1 sheet by... 09-14-2010, 04:54 AM
JBeaucaire Re: Copy rows from 1 sheet by... 09-14-2010, 08:47 AM
rogerabhi Re: Copy rows from 1 sheet by... 09-14-2010, 01:06 PM
JBeaucaire Re: Copy rows from 1 sheet by... 09-14-2010, 04:42 PM
  1. #1
    Registered User
    Join Date
    08-19-2010
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    12

    Copy rows from 1 sheet by Group

    I have attached an Excel book. I am very new to Excel VBA, hence request to please help me in building a macro with this:

    Sheet1 contains data for groups and subgroups as shown.

    Sheet2 contains multiple rows for each sub group.

    How do I write a macro so that it dos the following things:

    1. Iterate Sheet1 and create new sheets based on Group name. Here, create 4 new sheets as A, B, C, D

    2. Iterate Sheet2 and copy rows of sub groups to the corresponding Group sheets which are newly created. Ex: Copy all rows starting with 'aa' or 'aaa' to the group sheet A

    3. Similarly carry out for other groups

    The data in Sheet1 and Sheet2 can be changed and the macro should handle it accordingly.
    Attached Files Attached Files

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