<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)  編輯  收藏

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


    網站導航:
     
    主站蜘蛛池模板: 国产亚洲无线码一区二区| 免费毛片在线视频| 亚洲午夜无码久久久久| 免费无码专区毛片高潮喷水| 日韩中文字幕免费| 亚洲s码欧洲m码吹潮| 欧洲美熟女乱又伦免费视频| 亚洲人成网站色7799| 免费看AV毛片一区二区三区| 亚洲一卡2卡三卡4卡无卡下载 | 国产免费爽爽视频在线观看| 亚洲午夜久久久久久久久电影网| 亚洲一级片免费看| 国产亚洲欧洲Aⅴ综合一区| 大地资源中文在线观看免费版| 亚洲精品亚洲人成人网| 免费人成在线观看视频高潮| 99久久精品国产亚洲| 在线观看成人免费视频不卡| 亚洲 日韩 色 图网站| 国产免费AV片无码永久免费| 特级一级毛片免费看| 亚洲日韩欧洲无码av夜夜摸| 99re视频精品全部免费| 精品国产日韩久久亚洲| heyzo亚洲精品日韩| 精品国产一区二区三区免费| 久久亚洲中文字幕精品有坂深雪 | 国内少妇偷人精品视频免费| 91亚洲一区二区在线观看不卡| 99久久免费国产精品特黄| 国产亚洲综合久久| 亚洲av无码一区二区三区乱子伦 | 国产成人精品日本亚洲11| 日韩高清免费在线观看| sss日本免费完整版在线观看| 亚洲天堂久久精品| 国产大片免费观看中文字幕| 久久免费国产精品一区二区| 亚洲AV无码无限在线观看不卡| 国产亚洲午夜高清国产拍精品|