What is good programming code for removing common English words (say a dozen, such as
, etc.) from cells in Excel? The questions I'm running into are whether to try to do it at the formula level, probably using Substitute, or at the VB level, such as with the code below.
When using the code below, the words in the strings to search are separated with commas (for example, keyword lists) and the words in my list of words to find have that same character on each side of the word (such as
). So, this method works okay, but will not find the common words at the beginning or the end of the strings, because if I add something like
or
in order to find the common words at beginning or end of cell, then I wind up stripping characters out of other words such as ,theme.
So, I'm wondering what others have done to accomplish something like this.
Bookmarks