S
smonczka
Can someone give me the VB code for opening up powerpoint from excel.
I am running a macro from excel that runs a macro in powerpoint. But
the macro errors out because it fails to open the presentation. If I
have PPT open and run the macro from Excel then everything works
corectly. I am using Office 2003 and XP. All files are in the same
directory as each other.
The code I am using ...
Sub PPTTest()
Dim PPT As Object
Set PPT = CreateObject("PowerPoint.Application")
PPT.Presentations.Open "C:\My Documents\Tracking\Presentation
template.ppt", , , False
PPT.Run "Presentation template.ppt!Module1.Import"
End Sub
Thanks for any help you can give me,
Steve
I am running a macro from excel that runs a macro in powerpoint. But
the macro errors out because it fails to open the presentation. If I
have PPT open and run the macro from Excel then everything works
corectly. I am using Office 2003 and XP. All files are in the same
directory as each other.
The code I am using ...
Sub PPTTest()
Dim PPT As Object
Set PPT = CreateObject("PowerPoint.Application")
PPT.Presentations.Open "C:\My Documents\Tracking\Presentation
template.ppt", , , False
PPT.Run "Presentation template.ppt!Module1.Import"
End Sub
Thanks for any help you can give me,
Steve