A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Links and Linking
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Exceel Links (Another One !!)



 
 
Thread Tools Display Modes
  #1  
Old November 22nd, 2004, 12:12 PM
Gary
external usenet poster
 
Posts: n/a
Default Exceel Links (Another One !!)

Hi Everyone (especially Bill Manville),

I have been asked to investgate an issue with Excell and hyperlinks. I will
try and explain the scenraio..

There is an .xls file on a server called contracts.xls . The UNC path to the
doc is \\servername\share\contracts.xls.

Below the share is another folder whichcontains hundreds of scanned
contracts from the sales group. These are in .pdf format.

The .xls has links to each of these .pdf's. The links are using UNC patchs
(as opposed to drive letters).

The aim of the .xls is to allow sales guys to open this .xls, and be able to
quickly loate the relevant contract for that particular customer.

The links were working fine, but all of a sudden some of them have stopped
working. I have tried the suggested fixes in similar threads on this
newsgroup, like adding the unc patch to the HyperLinks Base propertie of the
..xls, and adding a dummy unc path, still no result.

I have noticed that an entry is added to some (not all) of the hyperlinks,
like ../ . Some entries even have up to 3 ../ appended to the strat of the
link.

Can someone please explain to me why this is happening and a possible fix
for it.

The users are using excell 2002 from office XP, however I have been testing
some things on the .xls using Excell from office 2003, would this be the
reason for the problems?

Any help greatly appreciated..

Gary



  #2  
Old November 23rd, 2004, 12:46 AM
Bill Manville
external usenet poster
 
Posts: n/a
Default

I don't know if this will work - I have not experienced the problem
myself, but try:

Saving the file containing the links to some other directory, not on
the same server. Do the links then revert to UNC paths?
If so, change the Hyperlink base in File / Properties to a ficticious
server and then save the file back to the correct directory.


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

  #3  
Old November 23rd, 2004, 03:11 PM
Gary
external usenet poster
 
Posts: n/a
Default

Hey Bill thanks for that, unfortunetley it did not work.

Saving the file containing the links to some other directory, not on the
same server. Do the links then revert to UNC paths? NO THEY DID NOT REVERT
BACK.

Any other ideas ??

Thanks,
Gary


  #4  
Old November 23rd, 2004, 11:14 PM
Bill Manville
external usenet poster
 
Posts: n/a
Default

Gary wrote:
Any other ideas ??

I guess if you made the links using the HYPERLINK worksheet function
Excel would not feel at liberty to mess them up for you.

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

  #5  
Old January 24th, 2005, 02:55 PM
cydkil
external usenet poster
 
Posts: n/a
Default

I am having the exact same problem. Yes the hyperlink function solves this
but is much more manual if the file path is long. We are having hyperlink
issues in Office & Word as well but only since switching over to MS Office
2003. Our IT department along with many others have spent hours combing the
web for a solution so if anyone here can suggest something it would be HUGELY
appreciated.

"Bill Manville" wrote:

Gary wrote:
Any other ideas ??

I guess if you made the links using the HYPERLINK worksheet function
Excel would not feel at liberty to mess them up for you.

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


  #6  
Old January 25th, 2005, 04:42 PM
Bill Manville
external usenet poster
 
Posts: n/a
Default

Cydkil wrote:
the hyperlink function solves this
but is much more manual if the file path is long.


Not sure I understand what makes it more manual.
If you have a range of cells containing fixed hyperlinks that you want
to turn into HYPERLINK function calls a macro could be written to do
this. Maybe something like this (which converts all hyperlinks within
the selected range to hyperlink function calls):


Sub MakeHyperlinkFunctions()
Dim R As Range
Dim H As Hyperlink
For Each H In Selection.Hyperlinks
H.Range.Formula = "=HYPERLINK(""" & H.Address & IIf(H.SubAddress
"", "#" & H.SubAddress, "") & """, """ & H.Range.Text & """)"
Next
End Sub


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

  #7  
Old January 25th, 2005, 07:23 PM
cydkil
external usenet poster
 
Posts: n/a
Default

It is more manual as we have many links to other file types in different
directories which requires typing or opening an explorer window and copying
and pasting the location from the address bar. Think of a giant Excel file in
directory ABC linking to PDF files in directory LMO and PPT and Word files in
directory XYZ - keep in mind some of these linked files are 4-6 folders deep.

"Bill Manville" wrote:

Cydkil wrote:
the hyperlink function solves this
but is much more manual if the file path is long.


Not sure I understand what makes it more manual.
If you have a range of cells containing fixed hyperlinks that you want
to turn into HYPERLINK function calls a macro could be written to do
this. Maybe something like this (which converts all hyperlinks within
the selected range to hyperlink function calls):


Sub MakeHyperlinkFunctions()
Dim R As Range
Dim H As Hyperlink
For Each H In Selection.Hyperlinks
H.Range.Formula = "=HYPERLINK(""" & H.Address & IIf(H.SubAddress
"", "#" & H.SubAddress, "") & """, """ & H.Range.Text & """)"
Next
End Sub


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


  #8  
Old January 26th, 2005, 11:57 PM
Bill Manville
external usenet poster
 
Posts: n/a
Default

Cydkil wrote:
It is more manual as we have many links to other file types in different
directories which requires typing or opening an explorer window and copying
and pasting the location from the address bar.


If you use my suggested approach in the last message, the only addition to
what you were doing previously to create the links would be: highlighting a
range of cells into which you had added hyperlinks and clicking a button to
run the macro - not a huge overhead I would have thought.

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

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing a group of hypertext links or all hypertext links in a document Terri Creagh General Discussion 5 November 9th, 2004 05:30 AM
Removing a group of hypertext links or all hypertext links in a document Terri Creagh Tables 5 November 9th, 2004 05:30 AM
Quick links for Office 2003 djohnson Setup, Installing & Configuration 1 April 29th, 2004 10:36 PM
Excel 2000 converts UNC links to relative - need to preserve UNC links! Jeff Adams Links and Linking 3 April 15th, 2004 05:46 PM
Links Paul W Smith Links and Linking 3 October 16th, 2003 02:28 PM


All times are GMT +1. The time now is 08:13 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.