+ Reply to Thread
Results 1 to 9 of 9

Need a Macro to group certain columns and save them as a separate file in specific folder

  1. #1
    Registered User
    Join Date
    04-15-2008
    Location
    Tamil Nadu, India.
    MS-Off Ver
    Microsoft Office 2016
    Posts
    584

    Smile Need a Macro to group certain columns and save them as a separate file in specific folder

    Dear Friends,

    I have more than 1000 rows and 100 columns of data.

    I need a MACRO to separate Cols. A, B along with unique values in Row #2 then that file should be saved in a separate folder as per the value in Col.B.

    I attached a sample file in which I furnished all details.

    I request your kind help.
    Attached Files Attached Files
    Last edited by acsishere; 07-29-2013 at 11:01 AM.
    Good friends are hard to find, harder to leave, and impossible to forget.

    acsishere.

  2. #2
    Registered User
    Join Date
    04-15-2008
    Location
    Tamil Nadu, India.
    MS-Off Ver
    Microsoft Office 2016
    Posts
    584

    Re: Need a Macro to group certain columns and save them as a separate file in a specific f

    Request kind help... please...

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Need a Macro to group certain columns and save them as a separate file in a specific f

    Maybe:

    Please Login or Register  to view this content.
    Last edited by JOHN H. DAVIS; 07-29-2013 at 02:37 PM.

  4. #4
    Registered User
    Join Date
    04-15-2008
    Location
    Tamil Nadu, India.
    MS-Off Ver
    Microsoft Office 2016
    Posts
    584

    Re: Need a Macro to group certain columns and save them as a separate file in specific fol

    Dear Sir,

    Thanks for your magical code. It solves the purpose. A little error I found, when executed.

    I request your magic hand to clear the problem.

    Please Sir...
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Need a Macro to group certain columns and save them as a separate file in specific fol

    I received your PM. The reason the macro is not working now is that you revised your requirements. You added another Jun-13 for "AAA". That would cause the error you are receiving. The macro steps by 2 and creates sheets based on pairs or one. How many elements for each sheet can there be?

  6. #6
    Registered User
    Join Date
    04-15-2008
    Location
    Tamil Nadu, India.
    MS-Off Ver
    Microsoft Office 2016
    Posts
    584

    Smile Need a Macro to group certain columns and save them as a separate file in specific fol

    Dear Sir,

    Thanks for your kindness & reply.

    Actually, the data is only the sample to show the requirements.

    The minimum & maximum number of elements will be: from 1 to 12. (i.e. number of each elements may vary from 1 to 12).

    Request your kind help.

  7. #7
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Need a Macro to group certain columns and save them as a separate file in specific fol

    Try this:

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    04-15-2008
    Location
    Tamil Nadu, India.
    MS-Off Ver
    Microsoft Office 2016
    Posts
    584

    Re: Need a Macro to group certain columns and save them as a separate file in specific fol

    Sir, Excellent. It's working nicely. No words to express my Gratitude.

    Thanks. Thanks a lot. It solved my huge task.

    Regards.

  9. #9
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Need a Macro to group certain columns and save them as a separate file in specific fol

    You're welcome. Glad to help out and thanks for the feedback and reps.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 07-11-2013, 02:08 AM
  2. [SOLVED] macro to save file to specific folder with file name from cell reference
    By mezza89 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-06-2013, 11:32 AM
  3. [SOLVED] Macro to group columns based on specific criteria in entire workbook
    By kbkumar in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-09-2012, 04:47 AM
  4. [SOLVED] request macro to save file to multiple, separate locations
    By Joseph Spain in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-26-2005, 10:46 AM
  5. How do I save each sheet as a separate .xls file by using macro?
    By Min in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-18-2005, 10:06 AM

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