B
brm3
I have hundreds of power point slides I need to clean up, and I am using VBA
(powerpoint 2003). One condition is causing me some problems. I have an if
statement and I am comparing to a text string in a field. Something like
this: If oTbl.Cell(I, 1).Shape.TextFrame.TextRange.Text = SearchString Then
delete. Some fields have more than one word in the test string. If the
author entered the text in the field and let it wrap, I am able to find it
using the code above. However, some authors would type in one word then hit
return and type in another word. So when I search on the string in the
field, I never find it. For example, if I entered Bob White the search
works. If I entered Bob (then put enter here) White. It will not find Bob
White when I use it as the SearchString. How do you find text with an
imbedded line return in the middle of it? Thank you.
(powerpoint 2003). One condition is causing me some problems. I have an if
statement and I am comparing to a text string in a field. Something like
this: If oTbl.Cell(I, 1).Shape.TextFrame.TextRange.Text = SearchString Then
delete. Some fields have more than one word in the test string. If the
author entered the text in the field and let it wrap, I am able to find it
using the code above. However, some authors would type in one word then hit
return and type in another word. So when I search on the string in the
field, I never find it. For example, if I entered Bob White the search
works. If I entered Bob (then put enter here) White. It will not find Bob
White when I use it as the SearchString. How do you find text with an
imbedded line return in the middle of it? Thank you.