无码av一区二区三区无码,在线观看老湿视频福利,日韩经典三级片,成 人色 网 站 欧美大片在线观看

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

PPT VBA:多文件合并

2023-02-15 12:18 作者:ch_j  | 我要投稿

Sub 合并PPT()

? ? Dim t0 As Single: t0 = Timer

? ? Dim fdlog As FileDialog

? ? Dim prs As Presentation

? ? Dim prs1 As Presentation

? ? Dim sld As Slide

? ? Dim file

? ? Dim i As Integer

? ??

? ? Set prs = Presentations.Add

? ? Set fdlog = Application.FileDialog(msoFileDialogFilePicker)

? ? With fdlog

? ? ? ? .AllowMultiSelect = True

? ? ? ? With .Filters

? ? ? ? ? ? .Clear

? ? ? ? ? ? .Add "PPT文件", "*.ppt*;*.ppa*;*.pps*", 1

? ? ? ? ? ? .Add "所有文件", "*.*", 2

? ? ? ? End With

? ? ? ? If .Show Then

? ? ? ? ? ? i = 0

? ? ? ? ? ? For Each file In .SelectedItems

? ? ? ? ? ? ? ? Set prs1 = Presentations.Open(CStr(file))

? ? ? ? ? ? ? ? For Each sld In prs1.Slides

? ? ? ? ? ? ? ? ? ? sld.Copy

? ? ? ? ? ? ? ? ? ? prs.Slides.Paste prs.Slides.Count + 1

? ? ? ? ? ? ? ? Next

? ? ? ? ? ? ? ? prs1.Close

? ? ? ? ? ? ? ? i = i + 1

? ? ? ? ? ? Next

? ? ? ? End If

? ? End With

? ??

? ? Set fdlog = Nothing

? ? Set prs = Nothing

? ? Set prs1 = Nothing

? ? If i > 0 Then

? ? ? ? MsgBox Format(i, "完成,共合并了0個(gè)文件。") & Format(Timer - t0, "用時(shí)0.000秒。")

? ? End If

End Sub


PPT VBA:多文件合并的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
木兰县| 东丽区| 马尔康县| 鄱阳县| 佛山市| 庄河市| 金山区| 怀仁县| 岚皋县| 道孚县| 丹江口市| 潜山县| 东港市| 嘉义市| 永仁县| 邵阳市| 金寨县| 长治县| 长顺县| 临颍县| 扎鲁特旗| 深水埗区| 怀集县| 交城县| 江津市| 浦东新区| 宁阳县| 琼中| 平远县| 晋州市| 咸丰县| 甘孜| 郯城县| 平凉市| 福清市| 吉水县| 商南县| 独山县| 华坪县| 河曲县| 诏安县|