+ Reply to Thread
Results 1 to 8 of 8

Use of Loop Function for extracting data from Master sheet and creating seperate files

  1. #1
    Registered User
    Join Date
    09-23-2015
    Location
    India
    MS-Off Ver
    2010
    Posts
    24

    Use of Loop Function for extracting data from Master sheet and creating seperate files

    Hi Everyone,

    I am looking for help to automate a report. Let me explain what exactly I want.

    There is master sheet in which we have data in around 1.2 lakhs rows and in column A to M. In column I there are around more then 300 vendor names given and i want to extract the data vendor wise in a separate tab then save that file with same vendor name in a different folder. I have used the below coding which gives me what exactly i want but its very difficult to use this again and again for more then 300 vendors. its good only for few data but currently the data is in more then one lakh rows.

    Please Login or Register  to view this content.


    Therefore, I want if some can help me for coding of loop through which i can extract the data vendor wise and create a separate files with same vendor naming convention in different folder. if this work then i will get more then 300 separate files in different folder.

    Please help me asap as its urgent.

    Let me know in case if something is not clear.

    Thanks.
    Ankit Jain
    Last edited by alansidman; 05-12-2016 at 12:19 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,934

    Re: Use of Loop Function for extracting data from Master sheet and creating seperate files

    Code Tags Added
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    ( I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Contributor IonutC's Avatar
    Join Date
    01-28-2016
    Location
    Bucharest, Romania
    MS-Off Ver
    Office 2019
    Posts
    486

    Re: Use of Loop Function for extracting data from Master sheet and creating seperate files

    hi there,

    maybe you can post the excel file so we can have a look?
    the criteria of your filter is all the time the same, or is changing with the names of all your vendors? If you have 300 then you want 300 of files in that folder?

    am I right?
    Please consider:
    Be polite. Thank those who have helped you.
    Click the star icon in the lower left part of the contributor's post and add Reputation. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .
    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Posting code between tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

  4. #4
    Registered User
    Join Date
    09-23-2015
    Location
    India
    MS-Off Ver
    2010
    Posts
    24

    Re: Use of Loop Function for extracting data from Master sheet and creating seperate files

    Thank you so much Alan. I am not a regular user and i will try my best to take care of rules in future post.

  5. #5
    Registered User
    Join Date
    09-23-2015
    Location
    India
    MS-Off Ver
    2010
    Posts
    24

    Re: Use of Loop Function for extracting data from Master sheet and creating seperate files

    Hi IonutC,

    Thanks for replying. Yes your are right if I have 300 vendors then I will have 300 files which have the same vendor name and I have can have the vendor changes every time. please let me know how can I add my file as I searching the option but did not getting.

    Thanks,
    Ankit Jain

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,934

    Re: Use of Loop Function for extracting data from Master sheet and creating seperate files

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window (or use the paperclip icon).

  7. #7
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Use of Loop Function for extracting data from Master sheet and creating seperate files

    Please Login or Register  to view this content.
    Last edited by bakerman2; 05-14-2016 at 10:54 AM.

  8. #8
    Registered User
    Join Date
    09-23-2015
    Location
    India
    MS-Off Ver
    2010
    Posts
    24

    Re: Use of Loop Function for extracting data from Master sheet and creating seperate files

    Hi Bakerman2,

    your code is amazingly worked and result is exactly what I want. I would like to thank you. Its really help me a lot.

    Thank you so much again.

    Ankit Jain

+ 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. loop through file creating seperate files depending on name in a column
    By papasmurfuo9 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-17-2015, 06:37 AM
  2. Need help extracting data from multiple files into one master
    By brstrick in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-04-2015, 02:48 AM
  3. [SOLVED] Extracting Data from a Master Sheet to Sub Sheets
    By firemanli in forum Excel General
    Replies: 8
    Last Post: 04-26-2014, 08:46 PM
  4. Extracting data from multiple .xls files in folder and creating new workbook
    By haedyr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-01-2013, 07:28 PM
  5. Export data from master sheet to seperate worksheets dependent on 1-2 conditions
    By Cupomaxwell in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-10-2013, 10:04 AM
  6. [SOLVED] Creating a master from 2 seperate spreadsheets
    By katieshields in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 06-04-2013, 07:00 AM
  7. Creating a loop that will sort, copy, paste and save data into seperate workbooks
    By EggHead in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-14-2009, 03:17 PM

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