If you're waiting that somebody will write the code entirely for you, you might be waiting for a long time.
I'll give you some clues. Here's what I've advised you to do:
1. Open master file
2. Loop through Excel files with iterator i which stands for current row of master file. Both current file and master file should be opened at the same time.
2.1 Open current Excel file
2.2 Loop through Workbook.Sheets collection using iterator j which stands for current column in master file (current cell).
2.2.1 Copy H4 value from 'j'th sheet
2.2.2 Paste it into master_sheet.Cells(i, j)
2.3 Close current Excel file properly!
3. Close master file properly
You should write and execute this procedure in master file. So it will be open by default. So you don't need to write the step 1.
Step 2 is actually just Do While <...> Loop cycle iterating on files in the folder. You've got that cycle in code but you haven't got a counter variable which is necessary to enable writing each file in different row. It will look like this:
Step 2.1 is there already in code, inside the loop
Step 2.2 is much the same as step 2. It's a loop inside a loop. Loop on j can just go through all the sheets. As sheets have indexing, we can use For loop here. Both loops look like this:
Hope that helps
Bookmarks