I want to click my macro repeatedly to replace my selected word with the words in my array.
Here is what I want to do:
If Selection = a word in BeingSArray or BeingArray
Then replace Selection with the first/next word in BeingArray
When I run the macro again, it should replace the new word with the second/next word in BeingArray, and so on (in a loop)
Here is one of my many failed attempts:
With Selection
BeingSArray("am ", "is ", "are ", "was ", "were ", "be ", "being ", "been ") 'I have a separate list here because, when I highlight a word, I may have the following space highlighted with it.
BeingArray("am", "is", "are", "was", "were", "be", "being", "been")
If .Text = BeingArray(1) or .Text = BeingSArray(1) Then .TypeText = BeingArray(2)
'Do I need to add a command to select the new word here?
If .Text = BeingArray(2) Or .Text = BeingSArray(2) Then .TypeText = BeingArray(3) 'and so on
If .Text = BeingArray(8) Or .Text = BeingSArray(8) Then .TypeText = BeingArray(1)
End With