Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
ag ag is offline
external usenet poster
 
Posts: 5
Default Closing internet explorer in an excel macro

I am calling IE from an excel application (...hyperlink.follow)

Is there a way to automatically close that occurence of IE once the page
I called is displayed?
Or after a small amount of time?

thanks

AG


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Closing internet explorer in an excel macro

Try this

It close IE after 3 seconds

Sub LoadWebPage1()
Dim oleIE As Object
Set oleIE = CreateObject("InternetExplorer.Application")
With oleIE
'.TheaterMode = True 'dit is volledig scherm
.Visible = True
.Navigate "http://www.rondebruin.nl/Google.htm"
Application.Wait (Now + TimeValue("0:00:03"))
.Quit
End With
End Sub


--
Regards Ron de Bruin
http://www.rondebruin.nl



"ag" wrote in message ...
I am calling IE from an excel application (...hyperlink.follow)

Is there a way to automatically close that occurence of IE once the page
I called is displayed?
Or after a small amount of time?

thanks

AG




  #3   Report Post  
Posted to microsoft.public.excel.programming
ag ag is offline
external usenet poster
 
Posts: 5
Default Closing internet explorer in an excel macro

it works
thank you
AG

"Ron de Bruin" a écrit dans le message de news:
...
Try this

It close IE after 3 seconds

Sub LoadWebPage1()
Dim oleIE As Object
Set oleIE = CreateObject("InternetExplorer.Application")
With oleIE
'.TheaterMode = True 'dit is volledig scherm
.Visible = True
.Navigate "http://www.rondebruin.nl/Google.htm"
Application.Wait (Now + TimeValue("0:00:03"))
.Quit
End With
End Sub


--
Regards Ron de Bruin
http://www.rondebruin.nl



"ag" wrote in message
...
I am calling IE from an excel application (...hyperlink.follow)

Is there a way to automatically close that occurence of IE once the page
I called is displayed?
Or after a small amount of time?

thanks

AG






Reply
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
how do i call internet explorer from excel using macro asktoknow Excel Discussion (Misc queries) 1 April 23rd 08 12:53 PM
spreadsheet with macro does not work in Excel 2000 opened in Internet Explorer jt54 Excel Programming 0 April 5th 06 09:14 PM
Need macro bring internet explorer window to front Henpecked Excel Programming 0 November 17th 05 02:40 AM
Excel Macro cannot Run at Internet Explorer 6 WCNW Excel Programming 1 August 17th 05 03:51 AM
Macro not found when spreadsheet viewed in Internet Explorer? Ben Excel Discussion (Misc queries) 1 February 10th 05 07:31 PM


All times are GMT +1. The time now is 09:37 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"