<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 萍水相逢 閱讀(129) 評論(0)  編輯  收藏

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


    網站導航:
     
    主站蜘蛛池模板: 免费一级毛片免费播放| 久久久久久久亚洲精品| mm1313亚洲国产精品无码试看| 免费大香伊蕉在人线国产| 四虎影视无码永久免费| 亚洲成AV人综合在线观看| 免费永久国产在线视频| 免费精品无码AV片在线观看| 亚洲日韩国产一区二区三区在线| 久久久久国产成人精品亚洲午夜 | 久久久久久亚洲精品影院| www.亚洲一区| 国产福利视精品永久免费| 牛牛在线精品观看免费正 | 狼色精品人妻在线视频免费| 亚洲成年人在线观看| 免费在线黄色网址| 亚洲视频在线免费看| 国产精品极品美女自在线观看免费| 亚洲另类激情综合偷自拍| 婷婷综合缴情亚洲狠狠尤物| 天天影院成人免费观看| aa午夜免费剧场| 九九精品国产亚洲AV日韩| 亚洲第一香蕉视频| 国产亚洲精品一品区99热| 国产小视频在线观看免费| 亚洲AV无码专区亚洲AV伊甸园| 久久精品无码一区二区三区免费| 两性色午夜免费视频| 小说专区亚洲春色校园| 亚洲天堂2016| 久久亚洲精品中文字幕| 中文字幕精品无码亚洲字| 日本一区免费电影| 日韩免费精品视频| 99久久免费看国产精品| 九九热久久免费视频| 色妞www精品视频免费看| 亚洲国产成人精品激情| 亚洲精品日韩中文字幕久久久|