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

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


    網站導航:
     
    主站蜘蛛池模板: 亚洲成a人无码亚洲成www牛牛| 亚洲人成在线精品| 免费一级做a爰片久久毛片潮| 成人毛片免费观看| 在线观看日本亚洲一区| 女人被男人躁的女爽免费视频| 天天爽亚洲中文字幕| 永久免费的网站在线观看| 亚洲国产日韩女人aaaaaa毛片在线| 99久久国产免费-99久久国产免费| 久久亚洲精品成人av无码网站| 99免费在线观看视频| 亚洲午夜国产精品无卡| 大地资源二在线观看免费高清| 亚洲人成无码网站在线观看| 日韩a级毛片免费观看| 人妻巨大乳hd免费看| 日韩亚洲一区二区三区| 亚洲成年人免费网站| 亚洲熟妇AV一区二区三区宅男| 国产成人无码区免费A∨视频网站 国产成人涩涩涩视频在线观看免费 | 四虎成人精品国产永久免费无码| 亚洲综合精品网站在线观看| 国产一区二区三区免费观在线| 亚洲一区免费观看| 毛片免费视频播放| 一区二区三区AV高清免费波多| 亚洲区小说区图片区QVOD| 最好看最新的中文字幕免费| 亚洲色大情网站www| 亚洲日韩精品一区二区三区 | 亚洲精品人成电影网| 免费看大黄高清网站视频在线| 一级特黄特色的免费大片视频 | 亚洲中字慕日产2020| 九月婷婷亚洲综合在线| 美女被免费喷白浆视频 | 一级毛片a免费播放王色电影| 亚洲a在线视频视频| 午夜影视在线免费观看| 三年片免费观看大全国语|