R
raph_baril
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
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