?
Solved

Loading a file form IE?

Posted on 2005-04-08
3
Medium Priority
?
128 Views
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
0
Comment
Question by:changw414
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
rettiseert earned 300 total points
ID: 13739230
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)
0
 
LVL 13

Expert Comment

by:rettiseert
ID: 13739232
sure*
0
 

Author Comment

by:changw414
ID: 13743825
I actually figured another way of doing it. Thanks for the effort!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

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…
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…
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…
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…
Suggested Courses
Course of the Month13 days, 23 hours left to enroll

809 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