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: 11,123
Default Access a Web Site from VBA,

Try this

Sub LoadWebPage2()
ActiveWorkbook.FollowHyperlink Address:="http://www.rondebruin.nl/Google.htm"
End Sub

Or

Sub LoadWebPage1()
Dim oleIE As Object
Set oleIE = CreateObject("InternetExplorer.Application")
With oleIE
'.TheaterMode = True
.Visible = True
.Navigate "http://www.rondebruin.nl/Google.htm"
End With
End Sub



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


wrote in message om...
Hi!

I need a macro to access a web site from vba.

I do know How to use:
ActiveSheet.Hyperlinks.Add _
Anchor:=Selection, Address:= _
"http://www.allexperts.com", _
TextToDisplay:="Text to Dispaly"

BUT THIS IS NOT THE CASE!!


So I need some thing like:

Sub Eg()
Application.Open "www.google.com"
End Sub


This way when I presh Eg, I go directly to the desired Web Site, in
this example to www.gogle.com



PS: Please avoid sending me Hyperlinks examples using a range, a cell
and/or a selection.

This has to be done from VBA, and I have to go to the desired Web
Site from my macro!!!

Many Thanks!!!!!!!



 
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
Looking for Excel site similar to "The Word MVP Site" Doug New Users to Excel 1 January 25th 09 12:46 PM
On site Excel & Access Training JS Excel Discussion (Misc queries) 9 December 7th 07 11:07 AM
Unable to access the Office Online Web site in Office 2003, Excel Marcy S Excel Discussion (Misc queries) 2 March 21st 06 09:56 PM
Access a internet Web Site uisng a macro done with excel [email protected] Excel Programming 1 April 1st 04 05:14 AM
FTP site Gareth Excel Programming 1 January 12th 04 04:00 PM


All times are GMT +1. The time now is 06:56 AM.

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"