Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-17-2022, 05:16 PM
abrogard abrogard is offline Is There A Macro For Change URLs to Links? Windows 10 Is There A Macro For Change URLs to Links? Office 2019
Advanced Beginner
Is There A Macro For Change URLs to Links?
 
Join Date: Dec 2008
Posts: 54
abrogard is on a distinguished road
Default Is There A Macro For Change URLs to Links?

I have text documents which have many URLs in them.




I post those documents on my web pages. I paste them into html docs which I upload.


But of course those URLs are not links. The user cannot click on them and navigate away to that place.


All it would need, I think, is a macro that goes through a document and finds every 'https' for instance, parses the line to find the first space and uses that string as the URL and appends the code to make it Link.


I'm not sure, I think that's mainly just <a href:" " isn't it?


I'm thinking, hoping, such a macro or tool has been written and I can get a copy..




p.s. just took a look and it's not quite that simple is it? Many urls have spaces in them nowadays. Perhaps search for the first '/' ? I don't know. A bit beyond me. But anything would probably help. I have literally hundreds to do, true, hundreds...
Reply With Quote
  #2  
Old 03-17-2022, 06:51 PM
Guessed's Avatar
Guessed Guessed is offline Is There A Macro For Change URLs to Links? Windows 10 Is There A Macro For Change URLs to Links? Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,161
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

Valid URLs don't have spaces in them (a space would appear in a valid URL as %20).

Word has an Autoformat command that converts URLs. To find it, add the command called Autoformat... to your Quick Access Toolbar. Clicking this button opens a dialog titled Autoformat and you can then click on the Options button and ensure there is a tick next to 'Internet and network paths with hyperlinks". Click OK (twice) to convert the URL text to hyperlinks
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change registry value for updating links through vba Esgrimidor Word VBA 3 02-02-2021 04:36 PM
Is There A Macro For Change URLs to Links? Macro to convert urldefense URLs into regular ones? pjs15 Word VBA 1 03-31-2020 05:33 PM
Is There A Macro For Change URLs to Links? How to keep links within your powerpoint slide even if you change slides YounesB3 PowerPoint 6 06-25-2014 05:19 PM
Embedded Links Change Paths in Japanese Windows AgeeWasOut PowerPoint 1 11-27-2012 08:31 AM
Is There A Macro For Change URLs to Links? Macro to loop in subfolders, change links, export xml data Catalin.B Excel Programming 2 09-08-2011 11:37 PM

Other Forums: Access Forums

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