Get CreateObject (....) properties, and methods.

Posted on 2004-11-12
Last Modified: 2013-11-25

Example:     Set IE = CreateObject("InternetExplorer.Application")

How do I get names of properties and methods of IE object?

The only way I know how to get them is to google, and hope objects are documented.    
For example:

But I want to know how I can get those names without having to depend on documentation.

Question by:dbrckovi
    LVL 3

    Accepted Solution

    Visual Studio 6.0 supplies the OLE Viewer. It can be found online at:
    LVL 6

    Expert Comment

    you cant get the properties when create an object at runtime at design time.

    if you add the Microsoft Internet Controls control you can use F2 to browse all the properties for reference.
    LVL 10

    Expert Comment

    If you early bind it, you would then get Intellisense.
    Create a reference to shdocvw.dll and instead of

        Dim IE AS Object
        Set IE = CreateObject("InternetExplorer.Application")


        Dim IE As InternetExplorer
        Set IE = New InternetExplorer
    LVL 44

    Expert Comment

    when you create the IE instance like this:

    Dim IE as Variant

    Set IE = CreateObject("InternetExplorer.Application")

    you are using what is known as LATE BINDING, so that you are actually creating the specific object at RUNTIME.  As sunce, the Compiler has no clue whatsoever, what KIND of thing you are going to create until you actually create it (AT RUN-TIME).  Thus, it is not possible for intellisense (which exposes the methods and properties of the objects that you declare in your code) to know, beforehand, what could possibly be the methods and/or propertoies of the IE object that you have declared in your code.  In order to get Intellisense, you MUST use EARLY BINDING - that is, declare the IE object as a REAL type, so the compiler can look at the TypeLib, and expose the properties and methods found there, BEFORE the program is compiled or executed.

    LVL 11

    Author Comment

    Thanks MaximKammerer!
    This is exactly what I wanted. If it would only have some search option, it would be perfect.

    Featured Post

    Training Course: Java/J2EE and SOA

    This course will cover both core and advanced Java concepts like Database connectivity, Threads, Exception Handling, Collections, JSP, Servlets, XMLHandling, and more. You'll also learn various Java frameworks like Hibernate and Spring.

    Join & Write a Comment

    I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
    Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
    Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

    728 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

    22 Experts available now in Live!

    Get 1:1 Help Now