I did something that seems to me a little more complicated for a client.
You could contact me in private if no one helps you here! …
Michel, for FRIdNGE
1 person found this helpful
Yes, if the root part of the URL ('www.pharmac.govt.nz/latest/" changes then you would need some way to point the last portion of the URL to the text (I would suggest a spreadsheet. Unless the document is structured for XML, an xml file would be of no advantage.
The process needs to be driven by a script in order to automate the process as there are quite a few of these text labels.
Have you searched for scripts to do what you want?
Do you mean that there are many variable “one off” links in a spreadsheet or database, or that a small/limited list of links is repeated more than once in a long document?
Does the label text stay the same as it originally was with the hyperlink applied, or should the label text be changed to match the hyperlink?
Depending on the answers, native features could accomplish this without scripting, however scripting would make this so much easier.
EDIT: After some searching, the following script automates what I was suggesting is possible via native features (find/replace…Convert URL’s to hyperlinks…find/replace):
Read the documentation carefully as the script must be configured to work with your required URL’s and links… However if you have a spreadsheet of the label and the matching link, then you would probably want a script that worked with such input.
Many thanks for this: it looks bang on the money! I'll forward this to my client and we will hopefully be implementing this in the new year.
Have a great Christmas!!