Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming,microsoft.public.powerpoint,microsoft.public.office.developer.vba
|
|||
|
|||
![]()
Hello to all,
My problem is this, I am creating Charts on the fly, sending them to Powerpoint and doing some little formating and then closing and saving powerpoint. I loop through this for 60 graphs. The problem is not that the code is not working but that Excel as problems creating the Powerpoint.application object. It can take up to 30 sec for excel to create the activex component. Here is the code : Dim oPPApp As PowerPoint.Application Dim PPpres As PowerPoint.Presentation Dim pSlide As PowerPoint.Slide Dim sFileName As String Dim iSlide As Integer ' Slide Index AccessTime = Now() On Error GoTo ErrCheck Set oPPApp = CreateObject("Powerpoint.Application") ErrCheck: Set oPPApp = CreateObject("Powerpoint.Application") Resume Next MsgBox Format(Now() - AccessTime, "hh:mm:ss.s") sFileName = (...Some File...) oPPApp.Visible = msoCTrue Set PPpres = oPPApp.Presentations.Open(sFileName) I am looking for a way to make the object creation faster. If anybody can help me, this would be greatly appreciated. Thanks Francis |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Help - VBA Code execution in Excel | New Users to Excel | |||
Slow Excel Navigation with Up / Down Arrow and slow scrolling | Excel Discussion (Misc queries) | |||
Extremely Slow VBA Execution Speed | Excel Programming | |||
slow macro execution | Excel Programming |