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

Posted on 2007-10-20
Last Modified: 2010-08-05
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
    Set fDoc = Nothing  
    Set fra = Nothing

Thanks in advance.
Question by:blackbookcoder2
    LVL 10

    Accepted Solution

    Dim fra As SHDocVwCtl.InternetExplorer

    Author Closing Comment

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

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
    Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
    This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now