VBA macro: replace text in word file in all sub folders
I'm very new to VBA. What i want to be able to have is a macro attached to a button in excel that can 'on click':
- allow me to navigate to a folder
- Search that folder for any word files (.doc)
- Then perform a find and replace for a specific string of text that may be within any of those .doc files with the folder.
- close and save the amended .doc's
I found the question (please see link) which seems very similar code to what i need, although i dont need to go through any sub folders, just want to search through one folder that i navigate to at the start of the process.
I dont know enough about VBA to edit code confidently and would really appreciate your help with a solution.
Thank you,
Alex