The Set oPPTApp=CreateObject (" PowerPoint. Application ")
The Set oPPTPres=oPPTApp. Presentations. Open (FileName,,, False)
I am using the above two sentences code to create the
Originally on office2003 running very smooth
But then on the other computer office2010 is washed-up, run slowly
Especially on the slide, if there are some other actions, such as clicking fly out an answer
Is very slow, don't know why
Hope everybody to help me, if to solve the problem, an extra 100 points again
CodePudding user response:
I hope everybody help meOnline, etc...
CodePudding user response:
You should see the computer run directly PPT is very slowCodePudding user response:
No, not at slowDirectly run smoothly
CodePudding user response:
The Set oPPTApp=CreateObject (" PowerPoint. Application ")Closed oPPTApp object?
If you don't shut down, repeat many times oPPTApp is very slow,
Accounts for 2010 very memory drops,
CodePudding user response:
Where is closed?How close?
In the Set oPPTApp=CreateObject (" PowerPoint. Application ")
Shut down below?
The Set oPPTApp=Nothing
Like this?
CodePudding user response:
Use early binding, don't be late binding:'I was using a PowerPoint 2003, the first reference PowerPoint object library:
Option Explicit
Dim PowerPoint As PowerPoint. Application
Private Sub Command1_Click ()
On Error GoTo Errhandler
CommonDialog1. Filter="PowerPoint (*. Pot) | *. Pot | AllFile (*. *) | *. *", "
CommonDialog1. FilterIndex=1
CommonDialog1. ShowOpen
The Set PowerPoint=New PowerPoint. Application
PowerPoint. Presentations. The Open CommonDialog1. The FileName,,, msoFalse
Application. The Visible=True
'PowerPoint. Visible=True
'Application. DisplayAlerts=False don't save that
Errhandler:
End Sub
Private Sub Form_Unload (Cancel As Integer)
PowerPoint. Quit
The Set of PowerPoint=Nothing
End Sub
CodePudding user response:
What call early binding?Which sentence is early binding code?
I'll give you points to clarify
CodePudding user response: