我用下面方法可以访问WEB中的元素对象:
Private Sub Command1_Click()
    Dim a, b
    Dim d 'As IHTMLDocument2    
    For Each a In WebBrowser1.Document.All
        Debug.Print a.tagName
        If (a.tagName = "A") Then
            If a.Id = "button0" Then
                a.FireEvent ("onclick")
            End If
        End If
    Next
End Sub但不知框架Iframe中的元素如何访问?