Column of Hyperlinks

C

cmiling

I have a column of hyperlinks adjacent to a column of text. Can I "hide" the
column of hyperlinks behind the column of text so that when you click on the
text, it will take you where the hyperlink would?
 
N

NevilleT

There is a better way. What you need to do is to use the on click or on
doubleclick event to take you to the address. Here is the text you would use
on the event

Dim strDocPath As String

strDocPath = Me.txtLink
subHyperlinkFollow (strDocPath)

You can then create a generic sub routine to open the hyperlink and store it
in your modules.

Public Sub subHyperlinkFollow(strLinkName As String)
' Open a hyperlink

On Error GoTo Error_subHyperlinkFollow
Application.FollowHyperlink strLinkName, , True

Exit_subHyperlinkFollow:
Exit Sub

Error_subHyperlinkFollow:
MsgBox "Error in subHyperlinkFollow " & Err.Number & " - " &
Err.Description
Resume Exit_subHyperlinkFollow

End Sub

You can change the visible property of your hyperlink to false and you
should be fine.

Neville Turbit
www.projectperfect.com.au
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top