Hyperlink change after email...

July 16th, 2008 - 09:34 am ET by Asif Shah | Report spam
Hello.
I have an excel sheet that has hyperlinks to other sheets. All sheets are on
a network share and permissoins are open to all.

When I attach and email the excel sheet (that contains the hyperlinks) from
the network share, the recipient receives the sheet and opens it, the
hyperlinks have all been changed and now point to the recipients C drive
Documents and Settings instead of the network share, hence not being able to
open the hyperlink.

If I copy that sheet from the network share and paste it to my desktop and
then attach and email it, everything works great.

Any ideas??? I tried this on both Excel 2000 and 2003. Thanks.
email Follow the discussionReplies 7 repliesReplies Make a reply

Similar topics

Replies

#1 Bill Manville
July 16th, 2008 - 07:29 pm ET | Report spam
The hyperlinks are being stored as relative.
To get them stored as absolute, open the workbook in Excel (while it
still has its links to the correct network share),
File > Properties > Summary > Hyperlink base: \\NoServer\NoFolder
(or any other non-existent location).


Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - respond to newsgroup
Replies Reply to this message
#2 Asif Shah
July 16th, 2008 - 07:30 pm ET | Report spam
Thanks. But there was nothing in the Hyperlink base field. It was blank.

"Bill Manville" wrote:

The hyperlinks are being stored as relative.
To get them stored as absolute, open the workbook in Excel (while it
still has its links to the correct network share),
File > Properties > Summary > Hyperlink base: \\NoServer\NoFolder
(or any other non-existent location).


Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - respond to newsgroup




Replies Reply to this message
#3 Bill Manville
July 17th, 2008 - 03:17 am ET | Report spam
Asif Shah wrote:
Thanks. But there was nothing in the Hyperlink base field. It was blank.



Exactly.
That's why you have the problem and why I suggested you fill it with some
non-existent location such as \\NoServer\NoFolder.

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - respond to newsgroup
Replies Reply to this message
#4 Asif Shah
July 17th, 2008 - 09:00 am ET | Report spam
Oh OK.
I entered that in and now the link dosent even work from the network share
even before emailing. I get a message saying:

The address of this site is not valid. Check the address and try again.

"Bill Manville" wrote:

Asif Shah wrote:
> Thanks. But there was nothing in the Hyperlink base field. It was blank.
>
Exactly.
That's why you have the problem and why I suggested you fill it with some
non-existent location such as \\NoServer\NoFolder.

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - respond to newsgroup




Replies Reply to this message
#5 Bill Manville
July 17th, 2008 - 10:53 am ET | Report spam
Whoops - sorry - yes.
What I should have said was "to avoid the problem you need to set an
impossible base before creating the hyperlinks". That will cause the
hyperlinks to be created as absolute rather than relative.

Running the following macro should do the trick of converting the
relative links to absolute:

Sub FixHyperLinks()
Dim WS As Worksheet
Dim H As Hyperlink
ActiveWorkbook.BuiltinDocumentProperties("Hyperlink Base") = _
"\\NoServer\NoFolder"
For Each WS In ActiveWorkbook.Worksheets
For Each H In WS.Hyperlinks
If Mid(H.Address, 2, 1) <> ":" And _
Left(H.Address, 2) <> "\\" Then
H.Address = ActiveWorkbook.Path & "\" & H.Address
End If
Next
Next
End Sub


Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - respond to newsgroup
Replies Reply to this message
Help Create a new topicNext page Replies Make a reply
Search Make your own search