+ Reply to Thread
Results 1 to 8 of 8

Help Extract from a Excle File Multiple Sheets with Specific Column Range

  1. #1
    Registered User
    Join Date
    10-18-2018
    Location
    Dubai
    MS-Off Ver
    2016 Pro
    Posts
    3

    Help Extract from a Excle File Multiple Sheets with Specific Column Range

    Dear all,

    I need your help

    I have a File, inside this file there are n sheets all formatted in same way but each sheet has different name.

    I need to extract from the file all this sheet with the same specific range of column.

    For example:
    File RESULT
    SHEETS 1 2 3 4 5
    Column range C to D and Y to Z

    I need to create 5 new file, each of them called with the same name of the sheets so 1 2 3 4 5 and on each of them I must find the data from the range column mentioned above...


    now I am using this macro, but it create just the files based on the n sheets of master file

    Please Login or Register  to view this content.

    and I want to combine it with this macro that copy specific columns for each n sheets in the n files created

    Please Login or Register  to view this content.

    I wish I was clear, I need to combine them please...


    also my reports for each sheets have merged cells, I need also to remove th emerge in order to copy the columns.


    thanks a lot

    lorenzo
    Last edited by AliGW; 10-19-2018 at 03:55 AM. Reason: Code tags added.

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Help Extract from a Excle File Multiple Sheets with Specific Column Range

    I am not sure about the sheet and file names, but the ccode is based on what is in the OP, so give it a try.

    Please Login or Register  to view this content.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  3. #3
    Registered User
    Join Date
    10-18-2018
    Location
    Dubai
    MS-Off Ver
    2016 Pro
    Posts
    3

    Re: Help Extract from a Excle File Multiple Sheets with Specific Column Range

    first of all thanks for your answer, is not working...

    as I can see in your script is the for is until 5, but usually I don't know how many sheet I have, can be 5 or 10 or 20...

    the two scripts I have are working if are isolated, but I want to merge them...and include a script that remove all the merge cell for each sheet before exporting them...

    thanks

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    46,875

    Re: Help Extract from a Excle File Multiple Sheets with Specific Column Range

    Lorenzo - welcome to the forum!

    Please note that our rules require you to enclose your code in code tags. I will do it for you this time, but you must do it yourself in future. Thanks!
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

  5. #5
    Registered User
    Join Date
    10-18-2018
    Location
    Dubai
    MS-Off Ver
    2016 Pro
    Posts
    3

    Re: Help Extract from a Excle File Multiple Sheets with Specific Column Range

    Hello,

    thanks, sorry for it, I will do for future posts...

    thanks

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    46,875

    Re: Help Extract from a Excle File Multiple Sheets with Specific Column Range

    Thank you.

  7. #7
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: 2019 but still use also older versions
    Posts
    7,623

    Re: Help Extract from a Excle File Multiple Sheets with Specific Column Range

    One of possibilities:

    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  8. #8
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Help Extract from a Excle File Multiple Sheets with Specific Column Range

    I am trying to do this so that your original file stays intact. I think this might produce what you want but leave the cells merged in the original file.
    Please Login or Register  to view this content.

+ 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: 5
    Last Post: 05-23-2018, 09:35 PM
  2. Replies: 0
    Last Post: 09-06-2017, 08:30 PM
  3. Merging multiple files into one excle file with common & different headers
    By gurukiran in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-23-2015, 01:40 AM
  4. [SOLVED] Extract specific cells from multiple excel files in same folder to new summary file
    By Derek Holden in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-02-2014, 01:43 AM
  5. [SOLVED] How to extract specific data only and create multiple sheets
    By pahari75 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-06-2014, 11:06 PM
  6. Extract specific column data from specific sheet from multiple files in a folder
    By piggyfox in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-31-2013, 11:51 AM
  7. [SOLVED] If same column in multiple sheets is marked with an X how can i extract surrounding data
    By chrisjames25 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-06-2013, 03:25 PM

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