LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 171
Default Recognizing When An IE window changes URLs and closing the IE wind

Here is one I modded from the following website:
http://www.codingforums.com/showthread.php?t=125767

Maybe it will get you started.


Mark Ivey




Sub test()
Set oIE = CreateObject("InternetExplorer.Application")
oIE.Navigate "about:blank"

Do
Loop While oIE.Busy

oIE.Visible = True

Application.Wait Now + TimeValue("00:00:05")

oIE.Document.WriteLn "<html<head<titlePage Title</title</head<body<div
id='output'test</div</body</html"

Set oDIV = oIE.Document.All("output")

'Wait 5 seconds then change the output int the window
Application.Wait Now + TimeValue("00:00:05")

oDIV.InnerHTML = "I changed it"

'Wait 5 seconds then close the application
Application.Wait Now + TimeValue("00:00:05")

oIE.Quit
End Sub







 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Closing a window after transferring data JHB Excel Discussion (Misc queries) 2 August 3rd 09 12:03 PM
Self closing "modal" window ? Michel S. Excel Programming 4 February 12th 07 05:20 PM
Can I insert a pop up window in Excel to ask a ? b/4 closing? Bernadette Excel Discussion (Misc queries) 2 May 9th 06 04:06 PM
Closing DOS window after shell command Garry Boswell Excel Programming 1 January 9th 04 10:32 PM
Closing a Window Chuck Taylor Excel Programming 1 October 30th 03 01:16 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"