Results 1 to 9 of 9

ALL Excel Files in Folder - Copy & Paste SPECIFIC RANGE values of ALL WBs in SUMMARY WB

Threaded View

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

    ALL Excel Files in Folder - Copy & Paste SPECIFIC RANGE values of ALL WBs in SUMMARY WB

    Dear Friends,

    I have a SINGLE FOLDER in which 200-300 excel files (xlsm, xlsx, xls) are saved. These are collected from the users after some inputs. I am to CONSOLIDATE/SUMMARIZE the collected data from all workbooks.

    Sheet "Main" is protected with password "123".
    All other sheets are protected with password "456".

    The name of the sheet from where the SPECIFIC RANGE TO BE COPIED is mentioned in cell F6 of sheet called "Main".

    The Ranges are to be copied are:
    Sheet2 ("AAA"): Range (C105:H120)
    Sheet3 ("BBB"): Range (C75:H85)
    Sheet4 ("CCC"): Range (C88:H99)
    Sheet5 ("DDD"): Range (C60:H70)
    Sheet6 ("EEE"): Range (C40:H55)

    What to COPY & where to PASTE:

    If after the sheet "Main", "Sheet (EEE)" is visible, then the referred range of "EEE sheet" to be copied in the SUMMARY WORKBOOK from which the MACRO IS INITIATED.

    If after the sheet "Main", "Sheet (DDD)" is visible, then the referred range of "DDD sheet" to be SUBSEQUENTLY copied in the SUMMARY WORKBOOK from which the MACRO IS INITIATED.

    So that, all ranges of VISIBLE workbooks of that particular folder are COPIED and PASTED AS VALUES in sheet1 of workbook called "SUMMARY".

    After extracting data from each file, each sheet must be protected with the same password.

    In nutshell, What MACRO TO DO?:
    1) Macro runs from file "SUMMARY".
    2) Select the folder
    3) Each workbook - unprotect password of sheets ("Main") & Other "visible sheet also".
    4) Pick-up value from cell F6 (this is sheet's name to be extracted) and activate that Sheet.
    5) Extract the values from range of SPECIFIED cells
    6) Activate SUMMARY workbook.
    7) Paste values in Sheet1.
    8) Protect all sheets with same password ("Main" with 123; "Other sheets" with 456).
    9) Close the opened workbook.
    10) Repeat the above processes with other workbooks till the last workbook and SAVE everything in SHEET1 of SUMMARY WORKBOOK.


    I have attached a sample file in which the details are again mentioned.

    I request your kind help, please.
    Attached Files Attached Files
    Last edited by acsishere; 10-10-2017 at 01:51 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Copy specific range and paste on txt files
    By Psiridis in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-30-2017, 05:30 AM
  2. Loop through files in folder, copy range, Paste range to original workbook
    By knevil in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-09-2016, 05:33 PM
  3. [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
  4. [SOLVED] Copy/paste Range of worksheets of several files in a folder to a master file
    By mrjinx007 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-18-2013, 01:02 PM
  5. [SOLVED] Need to copy values from all files in folder from specific worksheet
    By jh51745 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-03-2013, 01:05 PM
  6. Replies: 1
    Last Post: 03-28-2013, 02:49 PM
  7. Copy-Paste Macro of 3 columns from multiple excel files into one summary file
    By jpmaster53 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-15-2012, 07:10 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