ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Hyperlinks keep changing (https://www.excelbanter.com/excel-discussion-misc-queries/142460-hyperlinks-keep-changing.html)

Cadwan

Hyperlinks keep changing
 
I'm using a VB Macro to enter Hyperlinks in an Excel spreadsheet, on the
server, but when I copy the server spreadsheet to local stations the
hyperlink path becomes unusable. Why do these hyperlinks keep changing?
Anybody?

Code example:
PO_Filename = "\\server01\server\00-Purchase Orders\" & PO_PONo & _
"-" & PO_ordnam & "-" & PO_Vendnam & ".xls"
With Worksheets(1)
.Hyperlinks.Add Anchor:=.Range(cell_no), _
Address:=PO_Filename, _
ScreenTip:=PO_Filename, _
TextToDisplay:=PO_PONo
End With
--
http://www.fyi.bz


All times are GMT +1. The time now is 02:03 PM.

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