Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
open powerpoint file
I want to open a power point file with the following code but it's always
giving me an error on the last line. Somebody knows? Sub openppt() Dim Brocoli As Object Dim Potato As Object Dim carot As String carot = "C:\random folder\open me.ppt" Set Brocoli = CreateObject("powerpoint.Application") Brocoli.Visible = True Set Potato = Brocoli.documents.Open(Filename:=carot) End Sub |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
open powerpoint file
What error message do you receive?
-- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "raph_baril" wrote in message ... I want to open a power point file with the following code but it's always giving me an error on the last line. Somebody knows? Sub openppt() Dim Brocoli As Object Dim Potato As Object Dim carot As String carot = "C:\random folder\open me.ppt" Set Brocoli = CreateObject("powerpoint.Application") Brocoli.Visible = True Set Potato = Brocoli.documents.Open(Filename:=carot) End Sub |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
open powerpoint file
The PowerPoint object model doesn't have a Documents object. Did
you just make it up? Try Set Potato = Brocoli.Presentations.Open(filename:=carot) -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "raph_baril" wrote in message ... I want to open a power point file with the following code but it's always giving me an error on the last line. Somebody knows? Sub openppt() Dim Brocoli As Object Dim Potato As Object Dim carot As String carot = "C:\random folder\open me.ppt" Set Brocoli = CreateObject("powerpoint.Application") Brocoli.Visible = True Set Potato = Brocoli.documents.Open(Filename:=carot) End Sub |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
open powerpoint file
Yes I made it up, it works perfectly when you replace "document" by
"presentations" Thanks!!! "Chip Pearson" wrote: The PowerPoint object model doesn't have a Documents object. Did you just make it up? Try Set Potato = Brocoli.Presentations.Open(filename:=carot) -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "raph_baril" wrote in message ... I want to open a power point file with the following code but it's always giving me an error on the last line. Somebody knows? Sub openppt() Dim Brocoli As Object Dim Potato As Object Dim carot As String carot = "C:\random folder\open me.ppt" Set Brocoli = CreateObject("powerpoint.Application") Brocoli.Visible = True Set Potato = Brocoli.documents.Open(Filename:=carot) End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Can't open PowerPoint files | Excel Discussion (Misc queries) | |||
How do I stop automatic virus scan when I open powerpoint file? | Excel Discussion (Misc queries) | |||
How to open Excel file from PowerPoint? | Excel Programming | |||
How can I open an xls file in office powerpoint? | Excel Discussion (Misc queries) | |||
i received a file that reads powerpoint document file file exten. | Excel Discussion (Misc queries) |