ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Absolute hyperlink (https://www.excelbanter.com/excel-programming/350734-absolute-hyperlink.html)

Robert[_29_]

Absolute hyperlink
 
Gents I'm using VBA in Excel to created hyperlinks to files. VBA
creates absolute hyperlinks and this works fine. But when I save the
file on the same server it changes the hyperlink from absolute to
relative, which conflicts with other features in my VBA code. Could
anybody please help me with this?


Dave Peterson

Absolute hyperlink
 
You could try changing the hyperlink base to c:\.

File|properties|summary tab

But I'd use the =hyperlink() worksheet function. I've never seen it fail.

=hyperlink("File:////\\server\path\filename.ext","Click me")



Robert wrote:

Gents I'm using VBA in Excel to created hyperlinks to files. VBA
creates absolute hyperlinks and this works fine. But when I save the
file on the same server it changes the hyperlink from absolute to
relative, which conflicts with other features in my VBA code. Could
anybody please help me with this?


--

Dave Peterson


All times are GMT +1. The time now is 11:05 PM.

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