ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   how to prevent excel to change hyperlink path towards external fil (https://www.excelbanter.com/excel-discussion-misc-queries/244655-how-prevent-excel-change-hyperlink-path-towards-external-fil.html)

Danko Jotanovic

how to prevent excel to change hyperlink path towards external fil
 
I have cca 150 entries in 6 column table made in excel 2007. One of those 6
columns contains links to pdf files saved in separate directory on the same
hard disk drive.
Somehow, (I do not how it happens€¦) excel changes hyperlink paths towards
pdf documents.
My pdf docs are saved in a folder:
c:\users\AUSER\Auser documents\pdfs\classX
However, excel somehow changes this path to NONEXISTING one:
c:\users\AUSER\AppData\Roaming\Microsoft\Excel\pdf s\classX

How to prevent excel from changing original path towars my pdf documents?


Jacob Skaria

how to prevent excel to change hyperlink path towards external fil
 
Have you used worksheet function HYPERLINK()

Check out the help on
HYPERLINK(link_location,friendly_name)

If this post helps click Yes
---------------
Jacob Skaria


"Danko Jotanovic" wrote:

I have cca 150 entries in 6 column table made in excel 2007. One of those 6
columns contains links to pdf files saved in separate directory on the same
hard disk drive.
Somehow, (I do not how it happens€¦) excel changes hyperlink paths towards
pdf documents.
My pdf docs are saved in a folder:
c:\users\AUSER\Auser documents\pdfs\classX
However, excel somehow changes this path to NONEXISTING one:
c:\users\AUSER\AppData\Roaming\Microsoft\Excel\pdf s\classX

How to prevent excel from changing original path towars my pdf documents?


Danko Jotanovic

how to prevent excel to change hyperlink path towards external
 
what I did is:
I typed friendly name inside the cell and then clicked hyperlink icon from
Insert menu, browse to the file, selected it and it worked.
my problem appeared afterwards. like I said, excel somehow managed to change
hyperlink path...

I just tried with worksheet function HYPERLINK like it is described in HELP,
but it is not working at all.
when I enter everything needed to retrieve specific pdf document, as a
result i get #NAME? shown inside the cell, error message after the click.

"Jacob Skaria" wrote:

Have you used worksheet function HYPERLINK()

Check out the help on
HYPERLINK(link_location,friendly_name)

If this post helps click Yes
---------------
Jacob Skaria


"Danko Jotanovic" wrote:

I have cca 150 entries in 6 column table made in excel 2007. One of those 6
columns contains links to pdf files saved in separate directory on the same
hard disk drive.
Somehow, (I do not how it happens€¦) excel changes hyperlink paths towards
pdf documents.
My pdf docs are saved in a folder:
c:\users\AUSER\Auser documents\pdfs\classX
However, excel somehow changes this path to NONEXISTING one:
c:\users\AUSER\AppData\Roaming\Microsoft\Excel\pdf s\classX

How to prevent excel from changing original path towars my pdf documents?


Dave Peterson

how to prevent excel to change hyperlink path towards external fil
 
A few people have said that this has stopped a similar problem from occurring.
Maybe it'll help you--but you'll have to test it to make sure.

In xl2003 menus:
File|Properties|Summary Tab|Hyperlink Base
change it to C:\
(something that's always available)

In xl2007:
Click on the Office button
Choose Prepare, then properties.
Then use the arrow on the Document Properties dropdown
Choose Advanced Properties
And then change the hyperlink base on the Summary tab.

===============

I like to use the =hyperlink() worksheet function for this.

I'll put the path in a hidden cell (A1 in my example). (Include the trailing
backslash, too!)

Then put the filenames in A2:Axxx
Then use the =hyperlink() formula in B2:Bxx.

=hyperlink("File:////"&$a$1&a2,"Click me")
and drag down

Then when I need to change the folder, I can change it one location (A1).

I could embed the path directly in the formula:
=hyperlink("File:////c:\my documents\excel\"& a2,"Click me")
and use Edit|Replace, but that seems like more work to me.

========
If you used Insert|Hyperlink, then you've noticed that edit|replace won't touch
those hyperlink addresses.

Saved from a previous post:

If you used Insert|hyperlink (xl2003 menus), you'll have more work to do. But
the good news is David McRitchie has done most of it for you:

http://www.mvps.org/dmcritchie/excel/buildtoc.htm
look for:
Fix Hyperlinks (#FixHyperlinks)

If you're new to macros:

Debra Dalgleish has some notes how to implement macros he
http://www.contextures.com/xlvba01.html

David McRitchie has an intro to macros:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Ron de Bruin's intro to macros:
http://www.rondebruin.nl/code.htm

(General, Regular and Standard modules all describe the same thing.)

Danko Jotanovic wrote:

I have cca 150 entries in 6 column table made in excel 2007. One of those 6
columns contains links to pdf files saved in separate directory on the same
hard disk drive.
Somehow, (I do not how it happens€¦) excel changes hyperlink paths towards
pdf documents.
My pdf docs are saved in a folder:
c:\users\AUSER\Auser documents\pdfs\classX
However, excel somehow changes this path to NONEXISTING one:
c:\users\AUSER\AppData\Roaming\Microsoft\Excel\pdf s\classX

How to prevent excel from changing original path towars my pdf documents?


--

Dave Peterson


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com