Hi,
I have a code through which I'm trying to loop certain commands over several directories one by one. It merges the data from all the excel files present in subfolder into a summary workbook, then save it with subfolder name and close the summary workbook, and move to next subfolder.
However, the code is giving error in the first declaration, when I use private sub to take commands from the public sub. I don't quite understand that given my limited knowledge in excel VBA. I really need help with this to continue on my work. Can you point out the mistake in the code or a blunder or may be propose an improvement?
Here is the public sub commande:
Here is the rest of the code:
Bookmarks