Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-16-2020, 10:43 PM
scientist101 scientist101 is offline Word macro to cut a range of text and apply to subsequent text as a hyperlink Windows 10 Word macro to cut a range of text and apply to subsequent text as a hyperlink Office 2019
Novice
Word macro to cut a range of text and apply to subsequent text as a hyperlink
 
Join Date: Jul 2020
Posts: 6
scientist101 is on a distinguished road
Thumbs up


That worked like a charm. Thanks!
Reply With Quote
  #2  
Old 07-17-2020, 12:23 PM
scientist101 scientist101 is offline Word macro to cut a range of text and apply to subsequent text as a hyperlink Windows 10 Word macro to cut a range of text and apply to subsequent text as a hyperlink Office 2019
Novice
Word macro to cut a range of text and apply to subsequent text as a hyperlink
 
Join Date: Jul 2020
Posts: 6
scientist101 is on a distinguished road
Default Follow-up question

Hi Guessed,

The macro works great, but I'm running into an odd follow-up problem. I can use Word's 'save as pdf' function, and the links in that pdf seem to work fine. However, there's a secondary program I use those pdfs in, and the links no longer function. However, any links I've made manually work.

What's odd is that in the Word file, when you hover over the links, the addresses (either using the macro or manually) look exactly the same. But when you save as pdf, they look slightly different. The macro links have the syntax of "file:///C:", while the manually entered hyperlinks have the syntax "file:///C|".

It seems like the secondary software I'm working with likes the latter format. I've attached some files if it's helpful.

1) bibliotest - Word doc showing macro and manual links

2) bibliotest (first pdf) - pdf that comes from using Word save as function. Links still work, but the manual and macro links are different (c: vs. c|)

3) bibliotest (second pdf) - pdf generated by my secondary software. The input was the first pdf. Now only the manually entered links are still functional.

Any thoughts?

Thanks!
Attached Files
File Type: docx bibliotest.docx (26.8 KB, 9 views)
File Type: pdf bibliotest (first pdf).pdf (14.8 KB, 7 views)
File Type: pdf bibliotest (second pdf).pdf (18.6 KB, 8 views)
Reply With Quote
Reply

Tags
hyperlinking, macro find text



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro how to add hyperlink to text in document hullsquashboy Word VBA 32 06-28-2022 06:30 PM
Highlighting applied to range ending in a paragraph continues to apply to text added after Peterson Word VBA 2 10-08-2018 02:50 PM
Word macro to cut a range of text and apply to subsequent text as a hyperlink Word changing my body text to heading text when I apply paragraph numbering ddiemetric Word 1 01-17-2017 01:10 PM
Microsoft Word macro to find text, select all text between brackets, and delete helal1990 Word VBA 4 02-05-2015 03:52 PM
Word macro to cut a range of text and apply to subsequent text as a hyperlink Formatting- Apply changes to highlighted text results in same change to other text sential Word 6 01-10-2014 03:22 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:18 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft