473,378 Members | 1,347 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

designating an open browser window to read data


I've used the following code to open a browser window and read the data
to a file. I know there is another way using a query, but that doesn't
work for this application.

What I'd like to be able to do is select a this open browser after
opening other explorer windows.

This would be similar to the command:

Workbooks("objects.xls").Activate

where I have a file named objects.xls open in excel

An alternative would be to select a browser window after I've opened it
manually.

Other ideas I can work with.

How can I read the caption from a browser after activating it?

Is there such a thing like currentwindow.caption?

Thanks for your help. Please do not email me as I never look at that
one.
_________________________________________________

Sub openbrowswer_save_to_list2()

Set objie = CreateObject("InternetExplorer.Application")
objie.Visible = True
objie.Navigate ("http://www.yahoo.com/")

Do While objie.Busy
Loop

Do While objie.Document.readyState <> "complete"
Loop

Set fs = CreateObject("Scripting.FileSystemObject")
Set stream = fs.CreateTextFile("list2.txt")
stream.Write objie.Document.body.innerhtml
stream.Close

End Sub

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #1
1 1768
Cor
Hi Visual.Basic.Application man,

Did you maybe post to the wrong newsgroup, this is VB.net languages?
Not VBA.

Cor

I've used the following code to open a browser window and read the data
to a file. I know there is another way using a query, but that doesn't
work for this application.

What I'd like to be able to do is select a this open browser after
opening other explorer windows.

This would be similar to the command:

Workbooks("objects.xls").Activate

where I have a file named objects.xls open in excel

An alternative would be to select a browser window after I've opened it
manually.

Other ideas I can work with.

How can I read the caption from a browser after activating it?

Is there such a thing like currentwindow.caption?

Thanks for your help. Please do not email me as I never look at that
one.
_________________________________________________

Sub openbrowswer_save_to_list2()

Set objie = CreateObject("InternetExplorer.Application")
objie.Visible = True
objie.Navigate ("http://www.yahoo.com/")

Do While objie.Busy
Loop

Do While objie.Document.readyState <> "complete"
Loop

Set fs = CreateObject("Scripting.FileSystemObject")
Set stream = fs.CreateTextFile("list2.txt")
stream.Write objie.Document.body.innerhtml
stream.Close

End Sub

Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: lukeo | last post by:
I'm shelling out to an .asp (or htm) page from an application. I want to show this in a window without the address bar, etc... Is there a way I can redirect this page using javascript to a page...
4
by: jadiyo | last post by:
Hi, I've read many questions about how to automatically open a new window from a page using the JavaScript onLoad command. Unfortunately, due to the web application framework being used...
29
by: wayne | last post by:
Hey there... I'm having some problems passing url parameters with an open.window command. I'm not terribly familiar with java script but here is the code below. When executed it opens the...
3
by: Leonard | last post by:
I have a button on my web app, that opens a help html page. I use this code: HttpContext.Current.Response.Write("<script>") HttpContext.Current.Response.Write("window.open('" & sUrl & "','_new')")...
3
by: ODB | last post by:
Okay what i need is to open af new browser windows with some link in, but i can't get the Response.Redirect to open af new window, and when i redirect to a new page in the same window and then hit...
6
by: qysbc | last post by:
I have a web page and there is a link to open a TIFF file. The way I do it is to have the server code open a binary stream, set the content type to "image/tiff" and call Response.BinaryWrite. On...
4
by: jwlum | last post by:
I have the following problem under Internet Explorer only: 1. User fills out form data (myform.php) and clicks a button that fires myFunction() 2. myFunction() spawns a "hello, world" popup page...
7
by: anthony.turcotte | last post by:
Hi, I've looked for a solution to this problem on google, read posts in this newsgroup and I still haven't found anything that could help me. Here's the scenario. 1. User accesses...
9
by: cendrizzi | last post by:
Hi all, I've read some stuff on this but can't seem to come up with a solution that works right. I have a semi-mature (yet very large and robust) internal web application that currently only...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.