<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    隨筆 - 12  文章 - 0  trackbacks - 0
    <2018年12月>
    2526272829301
    2345678
    9101112131415
    16171819202122
    23242526272829
    303112345

    常用鏈接

    留言簿(103)

    隨筆檔案

    文章檔案

    jQuery

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    Public Sub Rdoc() If testing Then Exit Sub On Error GoTo ErrorHandler Dim currentRow As Integer currentRow = ActiveCell.row Dim dateStr As String dateStr = format(Date, "yyyyMMdd") Dim localPath As String localPath = Cells(currentRow, 9) Dim filePath As String Dim wa As Variant Dim wd As Word.document If InStr(Cells(currentRow, 11), ".doc") > 0 Then filePath = Cells(currentRow, 9) & Cells(currentRow, 11) Set wa = CreateObject("Word.Application") wa.Visible = False Set wd = wa.Documents.Open(filePath) Cells(currentRow, 10) = wd.Content.text wd.Close savechanges:=False wa.Quit Set wa = Nothing Else Dim wildcard As String wildcard = "*.doc*" Dim fileText As String Dim fso As Object Dim objFolder As Object Dim myFolder As Object Dim myFile As Object Set fso = CreateObject("Scripting.FileSystemObject") If fso.FolderExists(localPath) Then Set objFolder = fso.getfolder(localPath) For Each myFolder In objFolder.SubFolders For Each myFile In myFolder.files If myFile.Name Like wildcard Or myFile.Name = wildcard Then 'MsgBox myFile.path Set wa = CreateObject("Word.Application") wa.Visible = False Set wd = wa.Documents.Open(myFile.path) fileText = fileText & wd.Content.text wd.Close savechanges:=False wa.Quit Set wa = Nothing End If Next Next Set objFolder = Nothing End If Set fso = Nothing Cells(currentRow, 10) = Cells(currentRow, 10) & fileText End If ErrorHandler: If Err.Number <> 0 Then MyMsgBox Err.Number & " " & Err.Description, 10 End If End Sub
    posted on 2018-12-27 10:21 萍水相逢 閱讀(136) 評論(0)  編輯  收藏

    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: 最近免费中文字幕大全免费| 菠萝菠萝蜜在线免费视频| 国产一级黄片儿免费看| 亚洲精品无码永久在线观看| 国产精品亚洲专区无码牛牛 | 久久精品国产亚洲av水果派| 成全高清在线观看免费| 亚洲国产精品一区第二页| 中国人免费观看高清在线观看二区| 在线观看国产区亚洲一区成人 | 久久精品熟女亚洲av麻豆| 妞干网免费观看视频| 亚洲日韩亚洲另类激情文学| 免费能直接在线观看黄的视频| 亚洲国产午夜精品理论片 | 大地影院MV在线观看视频免费| 亚洲人成网亚洲欧洲无码久久| 久久青草免费91线频观看站街| 亚洲视频在线观看不卡| 91精品视频免费| 亚洲hairy多毛pics大全| 日本中文一区二区三区亚洲| 美女巨胸喷奶水视频www免费| 久久国产精品亚洲综合| 18级成人毛片免费观看| 精品国产麻豆免费网站| 国产精品亚洲一区二区三区在线 | 免费大片av手机看片| 中文字幕亚洲无线码a| 三年片在线观看免费观看大全动漫| 亚洲色大成网站www永久| 在线A级毛片无码免费真人| 一级毛片免费在线| 男女啪啪永久免费观看网站| 国产亚洲福利一区二区免费看 | 婷婷亚洲天堂影院| 男人的天堂网免费网站| 国产亚洲玖玖玖在线观看| 4338×亚洲全国最大色成网站| 亚洲影院天堂中文av色| 亚洲精品一级无码鲁丝片|