#1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default Excel

I want to have a hyperlink automaticallly inserted into a cell when that cell
has a specific piece of text typed into it, is it possible in Excel?

CG1954


  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 11,501
Default Excel

You don't provide too much information but you could build on this

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count 1 Or IsEmpty(Target) Then Exit Sub
If Target.Address = "$A$1" Then
If Target.Value = 123 Then
Target.Hyperlinks.Add Target, "http://www.google.co.uk/ig?hl=en"
End If
End If
End Sub

Mike

"CG1954" wrote:

I want to have a hyperlink automaticallly inserted into a cell when that cell
has a specific piece of text typed into it, is it possible in Excel?

CG1954


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



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

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

About Us

"It's about Microsoft Excel"