I have an Excel file that's an export from an Adobe PDF. It's all I have to work with. In order to clean it up, I need to replace all instances of multiple spaces with just one space. I typically do this by doing "search: (two spaces) replace: (one space)" multiple times until the search result tells me no instances of double spaces are found.
(edit: I need to do a search and replace in the spreadsheet, all over the spreadsheet, until no double spaces are found.)
Is there a way to automate this in VBA? If so, how?
I found an example of a Do loop, but it's just for searching, not replacing, so not sure how to set it up or even if this is the right solution.
Thank you for your help!
Thanks!!
Matt
(edit: I need to do a search and replace in the spreadsheet, all over the spreadsheet, until no double spaces are found.)
Is there a way to automate this in VBA? If so, how?
I found an example of a Do loop, but it's just for searching, not replacing, so not sure how to set it up or even if this is the right solution.
Code:
Do
code stuff here
Loop While Not (Search Result) is Nothing
Thank you for your help!
Thanks!!
Matt