Results 1 to 2 of 2

VBA macro to get value range from folders and multiple named files and calculate results

Threaded View

  1. #1
    Registered User
    Join Date
    09-29-2017
    Location
    Vilnius
    MS-Off Ver
    2016
    Posts
    7

    VBA macro to get value range from folders and multiple named files and calculate results

    1. I need VBA macro which would get values from two folders and multiple named files (*.xlsx and *.xls) with different named multiple worksheets in them.
    2. Data in folders consist with monthly reports which have to be compared to each other and some data extracted to main file. One folder stores data from last month and other – files from current month.
    3. There will be up to total 5000 tables and each folder and stored in multiple files. Files consist with other random and not relevant information.
    4. Each table store data for unique device, which can be identified by number and special number placed in table column No 2.
    5. The macro has to get/select values from all files and worksheets placed in 1st folder, table Col No 6. “End of the month” for Meters placed in table Col No 4: “Total Units”, “Units Won”, “Hand pay” and “Played games”. Those values have to be compared with values placed in all files and worksheets placed in 2nd folder, table Col No 5. “Beginning of the month” for Meters placed in table Col No 4: “Total Units”, “Units Won”, “Hand pay” and “Played games”. If values from table Col No 6 “End of the month” do not match data in table Col No 5 “Beginning of the month” macro should print list of “Device No / special No" on separate file worksheet.
    6. Also, the macro should additionally calculate RTP from 2nd folder (RTP is calculated when table Col No 6 value “Units Won” is divided by “Total Units” value) and print “Device No / special No” together with RTP results.
    7. It should be noted that tables can be placed on different cells on worksheets and same table can have additional Meters (e.g. “Coin In” and “Coin Out”) which is not necessary” for a task.
    8. FileNo1.xlsx represent Folder No 1 and FileNo2.xlsx represent Folder No 2

    If you have any questions please let me know.
    I really appreciate your help!
    Attached Files Attached Files
    Last edited by Tdecaz; 12-20-2018 at 08:55 AM.

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: 11-02-2018, 03:15 AM
  2. [SOLVED] Move multiple files from multiple folders to one folder via macro
    By nobleprince in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-24-2016, 06:33 PM
  3. Moving like named files into folders with same name
    By oybombadil in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-25-2015, 08:22 AM
  4. Use Excel VBA to Copy multiple files from different source folders to different folders
    By mm1234mail in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-12-2014, 01:17 PM
  5. Replies: 7
    Last Post: 09-06-2013, 11:44 AM
  6. [SOLVED] Copy range from multiple files in multiple folders to single sheet in master WB
    By Royzer in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 07-18-2012, 03:40 PM
  7. Replies: 0
    Last Post: 08-04-2010, 10:51 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