- UID
- 18298
- 性别
- 保密
- 金币
- 枚
- 贡献
- 点
- 威望
- 点
- 好评
- 分
- 宝石
- 颗
- 团队工龄
- 月
|
楼主 |
发表于 2012-10-3 10:47
|
显示全部楼层
本帖最后由 鹰蛇软件 于 2012-10-3 11:10 编辑
最终的标准化的代码,可以通用的……
Public Sub RemoveAllHyperlink()
Dim oHy As Word.Hyperlink, oHys As Word.Hyperlinks, i As Long, nCnt As Long
Set oHys = Word.ActiveDocument.Hyperlinks
nCnt = oHys.Count
For i = nCnt To 1 Step -1
Set oHy = oHys(i)
Debug.Print CStr(nCnt - i + 1) & "/" & CStr(nCnt) & "," & CStr(Round((nCnt - i + 1) / nCnt * 100, 2)) & "%,超链接地址:" & oHy.Address
oHy.Delete
Next
Set oHy = Nothing
Set oHys = Nothing
End Sub
|
评分
-
查看全部评分
|