CalRich1023
New Member
- Joined
- Mar 15, 2021
- Messages
- 48
- Office Version
- 365
- Platform
- Windows
- MacOS
Hello!
This could be a bit complicated, but I am going to try to explain this as best I can.
I need a VBA code to loop through most (not all) sheets on about 10-12 different workbooks (I can add more WB names to the code as they are created) and extract a varying range of cells that will be anywhere from 1 line to 100 lines of data per sheet. Maybe it could be helpful to put all necessary workbooks into a dedicated folder, and then search the entire folder? I want this data to be copied into a new workbook (where the code will be written) so it can be further analyzed, all in one place. There are going to be 100's, maybe upwards of 1000 sheets in total to loop through when it is all said and done.
This could be a bit complicated, but I am going to try to explain this as best I can.
I need a VBA code to loop through most (not all) sheets on about 10-12 different workbooks (I can add more WB names to the code as they are created) and extract a varying range of cells that will be anywhere from 1 line to 100 lines of data per sheet. Maybe it could be helpful to put all necessary workbooks into a dedicated folder, and then search the entire folder? I want this data to be copied into a new workbook (where the code will be written) so it can be further analyzed, all in one place. There are going to be 100's, maybe upwards of 1000 sheets in total to loop through when it is all said and done.
- The range will begin in cells J9:P9 and continue downward with a different number of lines on each sheet (end.xlup maybe?)
- This will be the same starting cells for each sheet.
- It may be important to note that this range does contain an array, so this may throw a kink in things.
- The Sheet Names that need to be EXCLUDED from the search (every workbook is the same) are:
- MASTER PIVOT
- Table Of Contents
- SEARCH
- COPY TEMPLATE
- ACCT #'S
- DATA
- The Workbook names that need to be searched are:
- Inventory_1
- Inventory_2
- Inventory_3
- etc.