|
-
Aug 2nd, 2001, 08:13 AM
#1
Thread Starter
Member
Excel-powerpoint
Is it possible to open a powerpoint show/presentation from excel?
I want to be able to open the show as part of a help file, if the user presses a button.
-
Aug 2nd, 2001, 08:53 AM
#2
Fanatic Member
You can use this code to embed a powerpnt pres on the excel sheet. The user would need to double click. I think you may even be able to put this code into the CLICK event on a command button.
Tell me how it works.
Sub AutomatePwrPtObject()
'This procedure embeds a PowerPoint Show
Dim Wdapp As Object
Dim WdDoc As Object
Dim aShape As Shape
Application.StatusBar = "Embedding & Editing document..."
Application.ScreenUpdating = False
'Select the upper left cell
With Worksheets("Sheet1")
.Activate
.Cells(2, 1).Select
'create the new embedded document
Set aShape = .Shapes.AddOLEObject(FileName:="PATH TO YOUR POWERPOINT PRESENTATION", _
DisplayAsIcon:=True)
End With
'set references to Word application and embedded document
Set Wdapp = aShape.OLEFormat.Object.Application
Set WdDoc = aShape.OLEFormat.Object
WdDoc.Activate 'activates the embedded document
Application.ScreenUpdating = True
Application.StatusBar = False
End Sub
-
Aug 2nd, 2001, 09:04 AM
#3
Fanatic Member
-
Aug 6th, 2001, 06:20 AM
#4
Thread Starter
Member
Both ways worked a treat
Thanks V Much
K
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|