


Lrow = ActiveSheet.Range("A" & Rows.Count).End(xlUp).Row 'Find last non-empty value in active worksheet

'Start macro Recursive using variable pth1 as a parameter 'Disable screen refresh while macro is running to speed things up 'Show another dialog box and ask for a path to the second folder With Application.FileDialog(msoFileDialogFolderPicker) 'Show a dialog box and ask for a path to the first folder 'Dimension variables and declare data types

If you have folders with a lot of files and subfolders the macro may take a while to finish. Unique files from both folders are in columns A to C, below the duplicate file list. Duplicate file names in the same folder tree and the corresponding folder tree are grouped together. The file information for duplicate files in the first folder is in columns A to C, the second folder is in columns D to F.Īs you can see in the image above, duplicate file names are listed together. In this example the picture shows the content in these two folders: The macro returns a new worksheet populated with duplicate and unique file names. It compares the file names but not the file sizes. Today I would like to share a macro that compares the content in two different folders and their subfolders. How to highlight row of the selected cell programmaticallyĬount text string in all formulas in a worksheet Ĭopy worksheets in active workbook to new workbooksĬreate comment if cell value is larger than columnĪuthor: Oscar Cronquist Article last updated on April 15, 2021 How to create a list of comments from a worksheet programmatically How to save specific multiple worksheets to a pdf file programmatically Multiply numbers in each row by entire cell range
