ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Scrolling down a web page using VBA (https://www.excelbanter.com/excel-programming/434625-scrolling-down-web-page-using-vba.html)

musicgold[_3_]

Scrolling down a web page using VBA
 
Hi,

I wish to be able to do the following things on a web page inside an Internet
Explorer instance.
I would appreciate it if you could give me some guidance on that.

1. Scroll down or right on the page
2. Go to a specific location on the web page (say at a word or phrase),
scrolling down, up, right or left. I want the focus of the window at that
location.

I am using the following code to open a specific webpage. The IE window does
NOT open in the maximized form. I want the page to automatically scroll down
to the RATES section on the page.

Code:
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = 1
IE.Navigate "http://finance.yahoo.com/€
Do While IE.Busy: DoEvents: Loop


Thanks,

MG.

Tim Williams[_2_]

Scrolling down a web page using VBA
 
See my answer to your earlier post.

Tim

"musicgold" <u40543@uwe wrote in message news:9d3389dfef3ce@uwe...
Hi,

I wish to be able to do the following things on a web page inside an
Internet
Explorer instance.
I would appreciate it if you could give me some guidance on that.

1. Scroll down or right on the page
2. Go to a specific location on the web page (say at a word or phrase),
scrolling down, up, right or left. I want the focus of the window at that
location.

I am using the following code to open a specific webpage. The IE window
does
NOT open in the maximized form. I want the page to automatically scroll
down
to the RATES section on the page.

Code:
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = 1
IE.Navigate "http://finance.yahoo.com/"
Do While IE.Busy: DoEvents: Loop


Thanks,

MG.




davyboom

Scrolling down a web page using VBA
 
can you proivethe detail link address.
I wish o learn the skill from you.

"Tim Williams" wrote:

See my answer to your earlier post.

Tim

"musicgold" <u40543@uwe wrote in message news:9d3389dfef3ce@uwe...
Hi,

I wish to be able to do the following things on a web page inside an
Internet
Explorer instance.
I would appreciate it if you could give me some guidance on that.

1. Scroll down or right on the page
2. Go to a specific location on the web page (say at a word or phrase),
scrolling down, up, right or left. I want the focus of the window at that
location.

I am using the following code to open a specific webpage. The IE window
does
NOT open in the maximized form. I want the page to automatically scroll
down
to the RATES section on the page.

Code:
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = 1
IE.Navigate "http://finance.yahoo.com/"
Do While IE.Busy: DoEvents: Loop


Thanks,

MG.






All times are GMT +1. The time now is 12:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com