Error: Export to PowerPoint

Hello, I am Exporting Notes document to PowerPoint. Below is the code.

============================

Set PwrPPt = CreateObject(“PowerPoint.Application”)

PwrPPt.Presentations.Open"C:\PP.ppt"

================================

Up to here code is working fine and opening the ppt file.

==================================

With PwrPPt .Presentations(1).Slides(1).Shapes(“names”).OLEFormat.Object

’ After this line I am getting error

'###“Error 213: OLE: The item with the specified name wasn’t found.”

.Text=“Testname”

.FontSize=24

.FontName=“Garamond”

End With

===============================

Can any one suggest how to add text in the power point slide by slide.

Pawan

Subject: Error: Export to PowerPoint

I haven’t played with exporting to Powerpoint but the error you’re getting is telling you that the ‘PwrPPt.Presentation…’ line is not right - you’re trying to access something that doesn’t exit.

I’d recommend you record a macro that does what you want to do in Notes and then modify that to work in LS.

Alternatively, you may want to spend some time at the MS forums for PPT - they can probably help you get VBA code that can serve as a framework for what you want to do.

Doug