'WORKBOOKS TO 1 SHEET STACKED
Here's a macro for collecting data from all files in a specific folder.
The parts of the code that need to be edited are colored to draw your attention.
===============
The main customization will be in this section:
'This is the section to customize, replace with your own action code as needed
LR = Range("A" & Rows.Count).End(xlUp).Row 'Find last row
Range("A1:A" & LR).EntireRow.Copy .Range("A" & NR)
wbData.Close False 'close file
NR = .Range("A" & .Rows.Count).End(xlUp).Row + 1 'Next row
Name fPath & fName As fPathDone & fName 'move file to IMPORTED folder
End If
fName = Dir 'ready next filename
Something like this, add to this "map" as you need:
'This is the section to customize, replace with your own action code as needed
'create a map here of the cells you want to "add"
.Range("A7").Value = .Range("A7").Value + sheet7.Range("A7").Value
.Range("B9").Value = .Range("B9").Value + sheet7.Range("B9").Value
.Range("C7").Value = .Range("C7").Value + sheet7.Range("C7").Value
wbData.Close False 'close file
NR = .Range("A" & .Rows.Count).End(xlUp).Row + 1 'Next row
Name fPath & fName As fPathDone & fName 'move file to IMPORTED folder
End If
fName = Dir 'ready next filename
Bookmarks