I want to replace text parts of Sentences. my approach is
Iterate on Sentences , since I use like this Document.Sentences.Count;
then I replace then in two way.
if Sentences is only includes text, I replace whole Sentences as below
Range rng = Sentences[i].Range(Start,End);
rng.Text = str ;
rng.Select;
if Sentences includes pictures, OLE object and ActiveX so on.
I extract the pure text part and apply above code to replace it.and the start and end position of text part is correct, I checked it.
problem is that when I replacing parts of Sentences it throw "Cannot delete Range " exception.
how can I do this if I want replace text part of Sentences which includes both text and picture?
thanks!