Hello,
I have a macro that looks at all excel workbooks in one folder and copies all rows (except row 1) for each of the worksheets that have a value in the first column and consolidates the data into one master worksheet. For example, if there are 12 workbooks, then all 12 will be automatically consolidated into one.
This is used to consolidate worksheets from multiple users into one spreadsheet.
In the event a user accidently loads a blank workbook in the folder, I would like a way to automatically identify which one it is. Currently this is manual - opening up the workbooks one by one to see which one had missing data.
If possible in the master file, I would like another tab to automatically log all the workbooks and worksheets that are in the folder as they are being reviwed by the macro plus identify the number of valid data rows (ie 0, 1, 4, etc)
Could someone help me with the coding on this as I'm still learning VBA.
Example of potential log:
Workbook, Worksheet, Data (# of rows)
Test File 1, Form, 1
Test File 2, Form, 2
Test File 3, Form, 0
Test File 4, Form, 1
I am attaching the code I have.
Thanks, Mary-Lou
Bookmarks