+ Reply to Thread
Results 1 to 7 of 7

Create workbooks based on speific range

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Create workbooks based on speific range

    Hello everyone

    I need to create workbooks in the same path .. the workbooks which will be created would be named after the data in range("U12:U23")
    There would be (MOH.xlsx , Mwared.xlsx and so on) according to the range("U12:U23")

    The created workbook should have the data related to each name according to the column S ("Final") (may be filter used) .. I didn't need all data just columns(D - E - R ) .. Just these four columns to be transferred to the new created workbooks. But just the related data

    I will attach an example of the expected workbook of the many workbooks that would be created

    Another point to create a workbook named "All Sections" , that includes all related information in column S except ("Without") condition .. that's to copy all data in columns( D - E -R - S) for all the sections mentioned in column S except the ("Without") criteria .. It would be 17 rows in this case
    I have attached the expected workbook structure of the "All Sections" workbook

    Hope it is clear
    Attached Files Attached Files
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  2. #2
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Create workbooks based on speific range

    For creating new workbooks, e.g. MOH.xlsx, maybe:

    Please Login or Register  to view this content.
    Cheers,
    berlan

  3. #3
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Create workbooks based on speific range

    Hi,

    As alternative to my Avengers Team 's code :

    Please Login or Register  to view this content.

    Regards

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Create workbooks based on speific range

    @Berlan
    Thanks a lot for this great help. But it doesn't export all desired workbooks. The code exports only six wbs.

    @Karedog
    Thanks alot for this great and helpful code
    Just a little modifications if possible .... Not to create workbooks in case of there are no data related
    For example : Tas 3 has no related data in column S so there is no need to create this workbook.

    Another point when I tested the code after unhiding all columns I got in the workbooks created all the columns
    I need to specify the columns to be transferred through code

    Another little point: Not to create workbook for "Without" section.
    Please don't attach the whole code again .. Just the modifications to learn ..Thanks advanced
    Thank you very much for help
    Last edited by YasserKhalil; 07-22-2015 at 04:52 PM.

  5. #5
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Create workbooks based on speific range

    Mr. Karedog
    hope the modificatin wil not bother you

  6. #6
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Create workbooks based on speific range

    You are welcome, thanks for the reps.

    This is the modification as per your request, and I must attach the whole code since there are some lines swapped.

    Please Login or Register  to view this content.

    Regards

  7. #7
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Create workbooks based on speific range

    Now it's perfect as usual
    Thank you very much for this great and awesome solutions
    Regards

+ 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. [SOLVED] Create New WorkBooks based on conditions from main workbook
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 11-19-2014, 03:56 AM
  2. [SOLVED] Macro to create new workbooks based on values in a column
    By eoghanmolloy in forum Excel Programming / VBA / Macros
    Replies: 27
    Last Post: 07-10-2014, 08:55 AM
  3. Create Workbooks based on Unique Values from a Column
    By aravindhan_31 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-10-2012, 04:25 AM
  4. Create new workbooks based on data from current workbook
    By remedina in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-01-2012, 02:03 PM
  5. create multiple workbooks based on data in worksheet
    By mpreddy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-11-2007, 12:16 PM
  6. CREATE NEW WORKBOOKS BASED ON ACTIVECELL & BUTTON CLICK
    By Eddy Stan in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-01-2006, 01:35 AM
  7. Replies: 1
    Last Post: 05-12-2006, 11:45 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