宛川骄子

兴隆山下群英聚,宛川河畔赞盛世。潜心数载润文心,仰望星空数长河,费思贪望皆为虚,明净长进真为铭!

« 用VBA代码编制宏批量修改PPT中的超级链接Crownboy的杏子双核 »

把PPT中的所有超级链接进行自动更换的关键代码

把PPT中的所有超级链接进行自动更换的关键代码,很有用的,只是许多人用不到这一块。
Sub fhfghfg()
slidcount = ActiveWindow.Presentation.Slides.Count
For sld = 1 To slidcount
On Error GoTo nonono1
linkcount = ActiveWindow.Presentation.Slides.Item

(sld).Hyperlinks.Count
For link = 1 To linkcount
On Error GoTo nonono

'MsgBox ActiveWindow.Presentation.Slides.Item

(sld).Hyperlinks.Item(link).Address
newlink ="
http://www.crownboy.com/post/新课程高中英语/" & Mid(ActiveWindow.Presentation.Slides.Item

(sld).Hyperlinks.Item(link).Address, 1, Len

(ActiveWindow.Presentation.Slides.Item(sld).Hyperlinks.Item

(link).Address) - 4) & ".htm"
'MsgBox newlink
ActiveWindow.Presentation.Slides.Item(sld).Hyperlinks.Item

(link).Address=newlink
nonono:

Next
nonono1:

Next

End Sub

  • 相关文章:

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

日历

最新评论及回复

最近发表

Powered By Z-Blog 1.8 Walle Build 91204 Code detection by Codefense  theme by BokeZhuti

【客服QQ:116545524 】 【Email: gogansu@gmail.com】 【备案号: 陇ICP备1020038号】 【版权所有:快乐王子网官方站】