ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Activate a web page (https://www.excelbanter.com/excel-programming/354458-activate-web-page.html)

mihai[_7_]

Activate a web page
 
Hello ,
How can I activate a Link ( http://www.yahoo.com/ )
using VBA code in my Macro1 for example .
Thanks and Regards Gill



R..VENKATARAMAN

Activate a web page
 
record macro clicking this llink in excel
you will get the code statements. modify to generalise.


"mihai" wrote in message
...
Hello ,
How can I activate a Link ( http://www.yahoo.com/ )
using VBA code in my Macro1 for example .
Thanks and Regards Gill




mihai[_7_]

Activate a web page
 
Thanks, R..VENKATARAMAN !
OK- I know that :
================================================== ==
Sub Macro1()
Sheets("AA").Select
Range("A1").Select
ActiveCell.FormulaR1C1 = "http://www.yahoo.com"
Range("A1").Select
Selection.Hyperlinks.Delete
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:= _
"http://www.yahoo.com/", TextToDisplay:="Gill"
Range("A1").Select
Selection.Hyperlinks(1).Follow NewWindow:=True, AddHistory:=True
Range("A1").Select
Selection.ClearContents
End Sub
================================================== ======


But:
I 'd like to launch a web page from macro-code without using a sheet as
support .

Thanks! Gill




All times are GMT +1. The time now is 02:18 AM.

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