C
Christopher King
I've written a PowerPoint add-in. The button to run the add-in is enabled
and disabled according to whether or not a presentation is open. Handling
embedded presentations is difficult. If a presentation is embedded in, say,
Word, the button does appear on the toolbar in Word, but enabling it
requires knowing if the window is embedded or not.
I presently do this: ActiveWindow.Caption returns "Presentation in C:/My
Documents/Work.doc" if a presentation is embedded. I check to see if the
first part of the caption is "Presentations in "; if so, I assume the
document is embedded. This would fail, of course, if a presentation was
called, say, "Presentation in Iowa". It may also fail on a non-English
version of Office. (It may also fail if the presentation is embedded in
another presentation; haven't explored that.)
Any one know of a trick for determining if a presentation is embedded in
another application?
and disabled according to whether or not a presentation is open. Handling
embedded presentations is difficult. If a presentation is embedded in, say,
Word, the button does appear on the toolbar in Word, but enabling it
requires knowing if the window is embedded or not.
I presently do this: ActiveWindow.Caption returns "Presentation in C:/My
Documents/Work.doc" if a presentation is embedded. I check to see if the
first part of the caption is "Presentations in "; if so, I assume the
document is embedded. This would fail, of course, if a presentation was
called, say, "Presentation in Iowa". It may also fail on a non-English
version of Office. (It may also fail if the presentation is embedded in
another presentation; haven't explored that.)
Any one know of a trick for determining if a presentation is embedded in
another application?