|
早提供附件不早就搞好了吗?请下载附件,打开“批量解密.doc”文件,点击“解码”按钮>>>>>>- Private Sub CommandButton1_Click()
- Dim Jm As New Bej, pa$, pt$, fi$
- Dim arr$(), n%, oDoc As Document
- Const Pas = "1111": fi = "*.doc*"
- Application.ScreenUpdating = False
- Application.DisplayAlerts = wdAlertsNone
- pa = ThisDocument.Path & ""
- pt = ThisDocument.FullName
- arr = Jm.wwj(pa, pt, fi)
- On Error Resume Next
- Do While arr(n + 1, 1) <> ""
- n = n + 1
- Set oDoc = GetObject(arr(n, 1))
- oDoc.Unprotect Pas
- oDoc.Close -1
- Loop
- Application.DisplayAlerts = wdAlertsAll
- Application.ScreenUpdating = True
- MsgBox "解密完成!"
- End Sub
复制代码
|
评分
-
1
查看全部评分
-
|