ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Launch "Browser URL" when Cell clicked (https://www.excelbanter.com/excel-programming/341191-launch-browser-url-when-cell-clicked.html)

CRayF

Launch "Browser URL" when Cell clicked
 
In the same type of event, can I launch a new browser window to a fix URL
when AC1 is clicked?

If Target.Address = "$AC$1" Then
'launch http://www.myurl.com in a separate IE window
End If



William[_2_]

Launch "Browser URL" when Cell clicked
 
Hi

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = "$AC$1" Then _
ActiveWorkbook.FollowHyperlink Address:="http://www.myurl.com", _
NewWindow:=True
End Sub

--
XL2003
Regards

William



"CRayF" wrote in message
...
In the same type of event, can I launch a new browser window to a fix URL
when AC1 is clicked?

If Target.Address = "$AC$1" Then
'launch
http://www.myurl.com in a separate IE window
End If





CRayF

Launch "Browser URL" when Cell clicked
 
thanks


All times are GMT +1. The time now is 12:25 AM.

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