Loading a file form IE?

Posted on 2005-04-08
Last Modified: 2010-05-02
I am trying to load a file from a directory using IE. So far I am using the following code:

Dim OpenInet
OpenInet = Shell("C:\Program Files\Internet Explorer\iexplore.exe d:\hi.txt", 1)

Is there a way that I can open the file not assuming the file will always be in the d:\ drive?

Thanks in Advance
Question by:changw414
    LVL 13

    Accepted Solution

    I'm not shure if this is what you want...

    Dim OpenInet
    FileName =  "d:\hi.txt"  'You can change this value
    OpenInet = Shell("C:\Program Files\Internet Explorer\iexplore.exe " + FileName, 1)
    LVL 13

    Expert Comment


    Author Comment

    I actually figured another way of doing it. Thanks for the effort!

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
    You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
    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…

    731 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

    16 Experts available now in Live!

    Get 1:1 Help Now