MacroWizard
11-26-2015, 02:28 PM
Haven't found any useful information on the internet about this. I embedded a pptx file within a word document. I use some vba to open the ole object; however, the powerpoint is displaying in show mode, and I need it to open in normal mode. Is there a way to control this either through the code or the embedded object?
Sub OpenPPT()
'This sends directly to powerpoint
'
Dim oCC As Shape
For Each oCC In ActiveDocument.Shapes
If oCC.Title = "pptDisaster" Then
oCC.TextFrame.TextRange.InlineShapes(1).OLEFormat.Edit
Else
' Do Nothing
End If
Next
End Sub
Also, the OLE object, when I hit Alt+F9, I get a tag that says Powerpoint.Show.12. Not sure if that has anything to do with it.
What do you guys think?
Sub OpenPPT()
'This sends directly to powerpoint
'
Dim oCC As Shape
For Each oCC In ActiveDocument.Shapes
If oCC.Title = "pptDisaster" Then
oCC.TextFrame.TextRange.InlineShapes(1).OLEFormat.Edit
Else
' Do Nothing
End If
Next
End Sub
Also, the OLE object, when I hit Alt+F9, I get a tag that says Powerpoint.Show.12. Not sure if that has anything to do with it.
What do you guys think?