G
Guest
This problem smacks of the one reported by Christopher King on 3/24 ... dunno.
I don't believe that TextRange.Replace is working the same in 2007 as it did
in 2003. Perhaps someone else could test this case? If they get the same
(surprising and disconcerting) results that I do, then we would need to find
out if the official definition of the TextRange.Replace method has changed,
or whether perhaps a fix from MS is forthcoming. To test, do this:
1. Insert a text box on a slide containing "abc xyz abc"
2. Select the second "abc"
3. Now run this sub:
sub TestTextRangeReplace
ActiveWindow.Selection.TextRange.Replace findwhat:="abc",
replacewhat:="def"
end sub
When I run this on a .ppt file using PowerPoint 2007, only the first "abc"
is changed to "def", not the second (selected) one. This would seem to make
it very difficult in some instances to change certain text while leaving
other text alone.
I'm having a very difficult time believing that Replace is working as it
should. It certainly doesn't seem to be working as it did in 2003. Can
someone shed some light on this?
I don't believe that TextRange.Replace is working the same in 2007 as it did
in 2003. Perhaps someone else could test this case? If they get the same
(surprising and disconcerting) results that I do, then we would need to find
out if the official definition of the TextRange.Replace method has changed,
or whether perhaps a fix from MS is forthcoming. To test, do this:
1. Insert a text box on a slide containing "abc xyz abc"
2. Select the second "abc"
3. Now run this sub:
sub TestTextRangeReplace
ActiveWindow.Selection.TextRange.Replace findwhat:="abc",
replacewhat:="def"
end sub
When I run this on a .ppt file using PowerPoint 2007, only the first "abc"
is changed to "def", not the second (selected) one. This would seem to make
it very difficult in some instances to change certain text while leaving
other text alone.
I'm having a very difficult time believing that Replace is working as it
should. It certainly doesn't seem to be working as it did in 2003. Can
someone shed some light on this?