Sub AppletsCollection()
'Returns the collection of all applets in the active document. Dim objApp As FrontPage.Application
Dim objAll As IHTMLElementCollection Set objApp = FrontPage.Application
'Reference the applets collection.
Set objAll = FrontPage.ActiveDocument.applets For i = 0 To objAll.Length - 1
'Display names of all applets in collection.
MsgBox "Element tag name: " & objAll.Item(i).Name
Next iEnd Sub
'Returns the collection of all applets in the active document. Dim objApp As FrontPage.Application
Dim objAll As IHTMLElementCollection Set objApp = FrontPage.Application
'Reference the applets collection.
Set objAll = FrontPage.ActiveDocument.applets For i = 0 To objAll.Length - 1
'Display names of all applets in collection.
MsgBox "Element tag name: " & objAll.Item(i).Name
Next iEnd Sub
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货