Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Activate hyperlink based on cell value

I am trying to automatically activate a hyperlink if a certain cell has a
value in it. Is there a way this is possible?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Activate hyperlink based on cell value

hi,

It would have helped to know which cells and where the hyperlink was going
but try this. Right click your sheet tab and view code and paste this in.
Enter 99 in a1 and a hyperling is created in b1 to sheet 1 a1

Private Sub Worksheet_Change(ByVal Target As Range)
If Range("A1").Value = 99 Then
ActiveSheet.Hyperlinks.Add Anchor:=Range("B1"), Address:="", _
SubAddress:="Sheet1!A1", TextToDisplay:="MyText"
End If
End Sub

Mike

"veggies27" wrote:

I am trying to automatically activate a hyperlink if a certain cell has a
value in it. Is there a way this is possible?

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
Activate hyperlink based on cell value Chip Pearson Excel Programming 0 April 9th 09 09:24 PM
Activate hyperlink based on cell value veggies27 Excel Programming 0 April 9th 09 08:44 PM
Using VBA to Activate a Hyperlink Matt Excel Programming 5 November 20th 08 04:56 PM
Hyperlink based on cell value in a different worksheet Bart Excel Worksheet Functions 3 October 24th 07 08:34 PM
Can Excel or Access activate a sound file based on a cell value? huzorba Excel Programming 2 November 2nd 05 12:26 AM


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