F
Frank
I have VBA macro that populates a string array (100,2) with incorrect and
correct strings. It steps through a FOR...NEXT loop, globally replacing each
incorrect string in the document with a correct string. On some documents
I'm getting an error that says "Object has been deleted," and when I hover
over .Text and .Replacement.Text, the tip says that the object has been
deleted. Sometimes it gets through the replacement loop, but then the error
will occur on replace operations that follow the loop. Sometimes, it works
just fine. Any thoughts?
correct strings. It steps through a FOR...NEXT loop, globally replacing each
incorrect string in the document with a correct string. On some documents
I'm getting an error that says "Object has been deleted," and when I hover
over .Text and .Replacement.Text, the tip says that the object has been
deleted. Sometimes it gets through the replacement loop, but then the error
will occur on replace operations that follow the loop. Sometimes, it works
just fine. Any thoughts?