P
Patrick Molloy
you can't single click - this would be the same as selecting the cell, so
you can use the SelectionChange method
you can use the SelectionChange method
Gary''s Student said:Yes. By using a hyperlink and a hyperlink event macro.
First select A1 and:
Insert > Hyperlink... > to a place in this document >
then pick cell A1 and give it the name "no"
This looks pretty useless. We have created a hyperlink that goes nowhere!
However, then insert the following event macro in the worksheet code area:
Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
For Each h In ActiveSheet.Hyperlinks
If h.SubAddress = "Sheet1!A1" Then
h.TextToDisplay = "yes"
End If
Next
End Sub
Now if we click on A1, the macro fires and changes the visible text to
"yes"
Without the hyperlink, we would have to rely on a double-click event.