S
scotty.addams
I would like to mimic the action of double-clicking on an OLE Embedded
object and opening it in the designated window. Thus when a slide show
contains a slide with the object I would like to programmatically open
the contents of the container. What I would like is advice as to how
this can be done. With a Presentation with one slide and one OLE
Embedded object, I have tried the following:
On a button event I call the following lines:
ActivePresentation.Slides(1).Shapes(1).Select
ActivePresentation.Slides(1).Shapes(1).OLEFormat.D oVerb 1
But I receive the error message:
Shape (unknown member): Invalid request. The window must be in slide or
notes view.
I have also tried surrounding the above code with:
lOriginalView = ActiveWindow.ViewType
ActiveWindow.ViewType = ppViewSlide
' Do stuff.
ActiveWindow.ViewType = lOriginalView
But I receive the error:
Application (unknown member): Invalid request. There is no currently
active document window.
I have also looked into using SendKeys, ShellExecute and ActivateShape,
as well as a third party control that exposes a slide's events.
object and opening it in the designated window. Thus when a slide show
contains a slide with the object I would like to programmatically open
the contents of the container. What I would like is advice as to how
this can be done. With a Presentation with one slide and one OLE
Embedded object, I have tried the following:
On a button event I call the following lines:
ActivePresentation.Slides(1).Shapes(1).Select
ActivePresentation.Slides(1).Shapes(1).OLEFormat.D oVerb 1
But I receive the error message:
Shape (unknown member): Invalid request. The window must be in slide or
notes view.
I have also tried surrounding the above code with:
lOriginalView = ActiveWindow.ViewType
ActiveWindow.ViewType = ppViewSlide
' Do stuff.
ActiveWindow.ViewType = lOriginalView
But I receive the error:
Application (unknown member): Invalid request. There is no currently
active document window.
I have also looked into using SendKeys, ShellExecute and ActivateShape,
as well as a third party control that exposes a slide's events.