+ Reply to Thread
Results 1 to 7 of 7

WBs to 1 Sheet code doesn't allow to choose certain data range from source workbooks

  1. #1
    Registered User
    Join Date
    03-20-2016
    Location
    Egypt
    MS-Off Ver
    2010
    Posts
    4

    Question WBs to 1 Sheet code doesn't allow to choose certain data range from source workbooks

    Hello Guys,
    After sometime searching for a code to use in order to extract data from multiple excel workbooks in 1 folder in to 1 master sheet. i found the code written by Jerry Beaucaire. in the following link. https://sites.google.com/a/madrocket...s-to-one-sheet
    to be honest it is very fulfilling and has everything exactly i need except for it doesn't allow me to choose certain range to be copied in the master sheet, rather than that it copies all the sheets in the mining folder.
    what i need is, if this code with the same functions can be adjusted a little so that it allows me to choose certain values from the source workbooks, also if i get to choose where to paste these data in the master sheet.
    following are few facts about my project
    1- the source workbooks are identical in structure, just has different data.
    2- values that needs extractions in the master sheet almost 5 values.
    3- number of total source workbooks can reach 10,000 workbook, and the question is that can this code handle such amount of workbooks?

    Thank you so much in advance for your support.

    regards,
    Mahmoud

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: WBs to 1 Sheet code doesn't allow to choose certain data range from source workbooks

    "also if i get to choose where to paste these data in the master sheet."
    It means you want a message to ask you where to put the data...?
    Can you send samples of the files to treat and give example of the values selection
    - Battle without fear gives no glory - Just try

  3. #3
    Registered User
    Join Date
    03-20-2016
    Location
    Egypt
    MS-Off Ver
    2010
    Posts
    4

    Re: WBs to 1 Sheet code doesn't allow to choose certain data range from source workbooks

    Hi PCI, and thank you so much for you answer and concern.
    i meant with the mentioned that if i could for example extract range C2 and paste it in Master sheet in A2.
    i attached example of the file and the needed cells to be extracted are the following
    C2, A5, C5, P5, C9, and R5
    what i'd like to have is the data in the cells mentioend above from sheet 1 and in the row below same data from sheet 2 and so on.
    the file sample is in the following link on Dropbox
    https://www.dropbox.com/s/or4avg54zu..._No1.xlsm?dl=0
    thank you so much,
    Mahmoud

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: WBs to 1 Sheet code doesn't allow to choose certain data range from source workbooks

    Try next code
    There could be some issues with the file you sent because it making reference to some external values, and when loading it, it ask for an update.
    But this can be remove later on, first check if it is OK
    Note statement Const where is define the cells to copy
    Please Login or Register  to view this content.
    Last edited by PCI; 03-21-2016 at 04:09 PM.

  5. #5
    Registered User
    Join Date
    03-20-2016
    Location
    Egypt
    MS-Off Ver
    2010
    Posts
    4

    Re: WBs to 1 Sheet code doesn't allow to choose certain data range from source workbooks

    Thank you soooooooo much, selecting certain data range works fine now, only 1 thing i changed in your code which is that i changed back the part which allows me to chose the location of the folder rather than selecting the data from the active sheet.
    now i could proceed with the project and the rest of the issues i still have is no show stopper, i will share it with you below if you have an opinion
    - copying the data in the master sheet without the original sheet's formatting.
    - if i could disable the question when it asks me to keep the old data, as i always need it by default.
    - once i run the macro it keeps asking me to Update for before copying the data from each sheet, i will see if i could eliminate this as well and makes it run automatically.
    once again thank you so much for your support, much appreciated
    P.S: Reputation added

  6. #6
    Registered User
    Join Date
    03-20-2016
    Location
    Egypt
    MS-Off Ver
    2010
    Posts
    4

    Re: WBs to 1 Sheet code doesn't allow to choose certain data range from source workbooks

    Thank you soooooooo much, selecting certain data range works fine now, only 1 thing i changed in your code which is that i changed back the part which allows me to chose the location of the folder rather than selecting the data from the active sheet.
    now i could proceed with the project and the rest of the issues i still have is no show stopper, i will share it with you below if you have an opinion
    - copying the data in the master sheet without the original sheet's formatting.
    - if i could disable the question when it asks me to keep the old data, as i always need it by default.
    - once i run the macro it keeps asking me to Update for before copying the data from each sheet, i will see if i could eliminate this as well and makes it run automatically.
    once again thank you so much for your support, much appreciated
    P.S: Reputation added

  7. #7
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: WBs to 1 Sheet code doesn't allow to choose certain data range from source workbooks

    To avoid the update, you may use next code
    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. VBA pivot code doesn't work if the amount of source data becomes too large
    By punter in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-28-2014, 07:59 PM
  2. Code to update links when the source workbooks are password protected
    By jobdillon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-24-2014, 01:02 PM
  3. [SOLVED] Consolidate Data from 1 Range on 1 Sheet in Multiple Workbooks to Master Workbook Sheet
    By Jennasis in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-10-2013, 06:11 AM
  4. [SOLVED] using a method to select which data source to choose
    By Tradesman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-21-2012, 11:08 AM
  5. [SOLVED] Paste data from source sheet to data sheet using 1st available row within a named range.
    By Krex14 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 08-28-2012, 08:14 AM
  6. Excel 2007 : Chart source doesn't like my range names
    By naznorb in forum Excel General
    Replies: 2
    Last Post: 12-14-2009, 03:48 PM
  7. How do I use VBA to choose the source cells for a list with Data Validation?
    By baconcow in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-11-2008, 05:36 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