Private Declare PtrSafe Sub Sleep Lib"kernel32" (ByVal dwMilliseconds As Long)
Set d = CreateObject("Scripting.Dictionary")
p= ActivePresentation.Path & "\"
If f <>ActivePresentation.Name Then d(f) = ""
If(UBound(ppt_name) < 0) Then
MsgBox "当前目录下没有其它的PPT", 48, "警告"
For i = 0 To UBound(ppt_name)
Set pptInput = Presentations.Open(p & "\" &ppt_name(i), ReadOnly:=msoFalse)
DoEvents: Sleep 100 '转出控制权!!!
DoEvents: Sleep 100 '控制权转回!!!
Presentations(p & "\" & ppt_name(i)).Save
Presentations(p & "\" & ppt_name(i)).Close
With Application.Presentations(str).Windows(1)
Set oldWin = Application.ActiveWindow
Set ws = CreateObject("wscript.shell")
ws.SendKeys "%LV%TE{tab 9}{end}{tab}V"
ws.SendKeys "~%{F11}" '改为~%{F11}