View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.programming
voodooJoe voodooJoe is offline
external usenet poster
 
Posts: 43
Default converting ppt to pdf launched from xls

the fact that .presentations stays lower case is a hint the syntax is wrong

once you set the ppt object and are refer to it, you essentially need to use
the ppt object model - which is a little different than the excel object
model (objects, properties, methods, events, etc)

google the internet for tips on how to work the PowerPoint object model - or
post to the ppt newsgroup - its been too long since I wrote vba for ppt for
me to be any help there

sorry, but you're on your own now -- voodooJoe

"pm" wrote in message ...
pm wrote:

a.open filename("..") does not work..


i find sth like this:

Dim PPObj As Object
Set PPObj = CreateObject("PowerPoint.application")
With PPObj
.presentations.Add
.presentations.Open Filename:="F:\Analizy ISI\pl\prob.ppt"
.Visible = True

but an error ocures: '-2147188160(80048240)'

Presentations.Open : invalid request. the powerpoint frame window
does not exist

which means that powerpoint application must be open?
but how can i open powerpoint application and close it after
printing to ps. file...