D
David Pooley
I have a macro that exports a PowerPoint presentation to XML so that the
text can be translated. Once translation is complete, another macro imports
the translated text back in to the slides. Is there any way to know that
when I access the text of a shape on the slide master that the "<#>" is
intended to display as the slide number in the presentation? PowerPoint
obviously "knows" that this is a field as it highlights it as such (clicking
any part of it highlights all the text) but I don't know how to get at that
information through VBA.
In my case, the following ...
ActivePresentation.SlideMaster.Shapes(5).TextFrame.TextRange.Characters
.... returns some text which contains "<#>" somewhere in the middle but how
am I supposed to know that this is the slide number? If I import some text
which just has "<#>" in it, PowerPoint doesn't change this to be the slide
number so "<#>" shows up on every slide instead of the number.
The solution I'm looking at is to assume that <#> is the slide number and
use the InsertSlideNumber method to replace it in the text but I was
wondering if there was any way to be certain ...
Thanks
David
text can be translated. Once translation is complete, another macro imports
the translated text back in to the slides. Is there any way to know that
when I access the text of a shape on the slide master that the "<#>" is
intended to display as the slide number in the presentation? PowerPoint
obviously "knows" that this is a field as it highlights it as such (clicking
any part of it highlights all the text) but I don't know how to get at that
information through VBA.
In my case, the following ...
ActivePresentation.SlideMaster.Shapes(5).TextFrame.TextRange.Characters
.... returns some text which contains "<#>" somewhere in the middle but how
am I supposed to know that this is the slide number? If I import some text
which just has "<#>" in it, PowerPoint doesn't change this to be the slide
number so "<#>" shows up on every slide instead of the number.
The solution I'm looking at is to assume that <#> is the slide number and
use the InsertSlideNumber method to replace it in the text but I was
wondering if there was any way to be certain ...
Thanks
David