Link to home
Start Free TrialLog in
Avatar of blackbookcoder2
blackbookcoder2

asked on

how can I use Dim fra As SHDocVw.InternetExplorer when my reference to Microsoft Internet Controls is a file called ieframe.oca

how can I use Dim fra As SHDocVw.InternetExplorer when my reference to Microsoft Internet Controls
is actually ieframe.oca?
Here's what I want to do:
    Dim fDoc As HTMLDocument
    Dim fra As SHDocVw.InternetExplorer
    Dim x As Integer

    Set fDoc = WebBrowser1.Document
    For x = 0 To fDoc.All.length - 1
        If TypeName(fDoc.All(x)) = "HTMLFrameElement" Then
            Set fra = fDoc.All(x)
            Debug.Print fra.Document.location.href
        End If
    Next
   
    Set fDoc = Nothing  
    Set fra = Nothing

Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of peetm
peetm
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of blackbookcoder2
blackbookcoder2

ASKER

sorry to take to long to answer, thanks for the help