+ Reply to Thread
Results 1 to 2 of 2

Looping Macro to split one worksheet into multiple

  1. #1
    Registered User
    Join Date
    03-05-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    1

    Looping Macro to split one worksheet into multiple

    Hi Everyone

    I have a master spreadsheet eg:

    A B C
    Name Product ID Result
    Steve 57 good
    Dave 57 good
    Steve 60 ok
    Steve 56 ok
    Steve 34 good
    Dave 56 bad
    Dave 23 bad

    What I want is a looping macro to create a new workbook (i.e. not a sheet within the existing workbook) which is named Dave.xls and Steve.xls

    I want the headers included and the formatting to remain the same if possible.

    I would also like to define the location to save them.

    Is this possible? I was asked not to use a filter as last time this didn't work properly (the spreadsheet is very large).

    I was also asked to provide failsafe check, I understood it as being some kind of check which ensured that Dave.xls only had Dave's information in it and that all of Dave's information was in Dave.xls. If this isn't possible, or makes no sense, that's ok.

    Many thanks for your help!!

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Looping Macro to split one worksheet into multiple

    Please attach a sample file with dummy data so we can understand the formatting and layout.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

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