WordVBA清除超链接
(2022-08-02 14:55:39)| 分类: VBA |
Sub WordClearHyperlinks()
Dim oField As Field
For Each oField In ActiveDocument.Fields
If oField.Type = wdFieldHyperlink Then
oField.Unlink
End If
Next
Set oField = Nothing
End Sub
============================================
Sub WordClearHyperlinks()
For Each link In ActiveDocument.Hyperlinks
link.Delete
Next
End Sub
============================================
Sub PPTClearHyperlinks()
For Each link In
ActiveWindow.Selection.SlideRange.Hyperlinks
link.Delete
Next
End Sub
前一篇:田径比赛缩写
后一篇:ExcelVBA删除单元格超链接

加载中…