F
Francis de Brienne
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
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