[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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
3
Medium Priority
?
548 Views
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
    Next
   
    Set fDoc = Nothing  
    Set fra = Nothing

Thanks in advance.
0
Comment
Question by:blackbookcoder2
2 Comments
 
LVL 10

Accepted Solution

by:
peetm earned 2000 total points
ID: 20117621
Dim fra As SHDocVwCtl.InternetExplorer
0
 

Author Closing Comment

by:blackbookcoder2
ID: 31408254
sorry to take to long to answer, thanks for the help
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses
Course of the Month18 days, 16 hours left to enroll

834 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