我有以下 VBA 脚本,用于替换特定 Visio 文档中所有超链接中的地址。(用原始空间替换%20
以允许链接在 Chrome/Firefox 中工作。)
Sub ChangeHyperlinks() ' change all hyperlinks on all shapes on all pages that start with
' "%20" to start with " "
Dim pg As Page
Dim shp As Shape
Dim hl As Hyperlink
For Each pg In ActiveDocument.Pages
For Each shp In pg.Shapes
For Each hl In shp.Hyperlinks
hl.Address = Replace(hl.Address, "%20", " ")
Next
Next
Next
End Sub
我想要一种将上述代码应用于特定文件夹和子文件夹中的所有 Visio 文档的方法。