how do i import a hyperlink to access

C

chris

need to know how to keep my hyperlinks from losing there value and becoming
the decription displayed.

=HYPERLINK("TECH INFO/LT200MY/ ", "LT200MY Shipping Bracket Photos")

becomes

LT200MY Shipping Bracket Photos
 
J

John Nurick

Hi Chris,

Here is a custom worksheet function which converts an Excel hyperlink
into something Access can import into a text field which you can then
convert to a hyperlink field.

Public Function ExpandHyperlink(R As Range, _
Optional AddressOnly As Boolean = False) As Variant

'Converts Excel hyperlink into a string that can be
'imported into an Access text field which can then
'be converted into a hyperlink field.

If R.Hyperlinks.Count > 0 Then
With R.Hyperlinks(1)
ExpandHyperlink = IIf(AddressOnly, .Address, _
.Name & "#" & .Address & "#" & .SubAddress)
End With
Else
ExpandHyperlink = ""
End If
End Function
 

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