Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 08-30-2025, 01:37 PM
chrisjj chrisjj is offline Fails on # in hyperlink local file address Windows 7 64bit Fails on # in hyperlink local file address Office 97-2003
Competent Performer
Fails on # in hyperlink local file address
 
Join Date: Aug 2025
Posts: 117
chrisjj is on a distinguished road
Default Fails on # in hyperlink local file address

On Word 2003, this fails. The below might help anyone stuck on this and e.g. attempting a macro to fix seomhow



Using Edit Hyperlink https://i.imgur.com/F9q9Jyi.png I create a hyperlink to

FAIL New PDF Document #.pdf

I enable Field Codes, and see:

{HYPERLINK "FAIL%20New%20PDF%20Document%20" \l ".pdf"}

The address is incorrect. Help Field codes: Hyperlink field - Microsoft Support says:

Code:
 \l
 Specifies a location in the file, such as a bookmark, where this
 hyperlink will jump.
Unsurprisingly an attempt to follow the link fails with:



I save as HTML, and get:

href="FAIL%20New%20PDF%20Document#.pdf">FAIL New PDF Document #.pdf</a>

Two more fails. Last space is missing. # is unencoded.

Patching to:

href="FAIL%20New%20PDF%20Document %23.pdf">FIX FAIL New PDF Document
#.pdf</a>

remedies on Firefox. On Chrome, I can't get /any/ local file link to open a
PDF locally, even having done Settings. I get just an empty tab titled
"Untitled".
  #2  
Old 08-31-2025, 02:39 AM
macropod's Avatar
macropod macropod is offline Fails on # in hyperlink local file address Windows 10 Fails on # in hyperlink local file address Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Kindly don't start multiple threads on the same topic.

Thread closed.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Closed Thread



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fails on # in hyperlink local file address Reading basic .txt file fails, how can it be? TheBigBoss Word VBA 9 09-19-2022 04:04 AM
Stop hyperlink to a file from changing address - causes problems with pdf c.davidson Word 1 09-15-2020 11:11 PM
Fails on # in hyperlink local file address Mail Merge to Email - Conditional Hyperlink Getting Changed to Invalid Local Path bgotchel Mail Merge 4 05-19-2020 04:50 AM
Fails on # in hyperlink local file address Hyperlink to the internet OR local file ??? ksor Word VBA 0 10-30-2019 08:08 AM
Hyperlink Format varies, depending on whether Target file was saved or unsaved on Hyperlink Copy RichardDavey Word 0 05-26-2015 05:26 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:05 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