Let's consider this:
Dim abc As String
Now open the Find and replace dialog and try to replace the "abc" string with "babc" string.
The editor will enter in an infinite loop, trying to replace the already replaced item, like this:
Dim abc As String
Dim babc As String
Dim bbabc As String
Dim bbbabc As String
Eventually we'll see the "Out of stack" message.