Thanks SO MUCH — very helpful
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
have code snippet to convert all urls into active hyperlinks? couldnt find
Home » Forums » AskWoody support » Productivity software by function » MS Word and word processing help » have code snippet to convert all urls into active hyperlinks? couldnt find
- This topic has 5 replies, 2 voices, and was last updated 12 years, 6 months ago.
AuthorTopicWScomputerbabyproblems
AskWoody LoungerNovember 29, 2012 at 2:54 pm #486599Viewing 2 reply threadsAuthorReplies-
macropod
AskWoody_MVPNovember 29, 2012 at 7:11 pm #1360195* how would you make it so this code (from an old thread on this site) — http://pastebin.com/69EJyBnF — runs persistently, automatically, and permanently so you dont have to run it every time?
Not possible. The nearest you could get is to have it run automatically (once) when the document is opened or closed.
* have macro/code snippet to convert all urls into active hyperlinks? couldnt find any on google
You could use something like:
Code:Sub ActivateHyperlinks() Application.ScreenUpdating = False With ActiveDocument.Range With .Find .ClearFormatting .Replacement.ClearFormatting .Text = "http://[! ]{1,}" .Replacement.Text = "" .Forward = True .Wrap = wdFindStop .Format = False .MatchWildcards = True .Execute End With Do While .Find.Found .Duplicate.AutoFormat .Collapse wdCollapseEnd .Find.Execute Loop End With Application.ScreenUpdating = True End Sub
* have macro/code snippet to replace all ending periods with a sentence break (like pressing enter)?
Not possible if you have abbreviations ending in periods (e.g., i.e., etc.)
Cheers,
Paul Edstein
[Fmr MS MVP - Word] -
WScomputerbabyproblems
AskWoody LoungerNovember 30, 2012 at 3:40 pm #13603761)
to also replace https:// can you just add Text = “https://[! ]{1,}”so it looks like this?
.Text = “http://[! ]{1,}”
.Text = “https://[! ]{1,}”
.Replacement.Text = “”2)
for the ending periods, all docs won’t have abbreviations ending in periods, and for the rare instances if they do, then it’s ok
i am guessing from looking at the code you would have something like…….
.Text = “.”
.Replacement.Text = [enter]”obviously i don’t know what im doing.. since im learning python — edx.org udacity.com coursera.org — i may recreate the codes with python — ironpython.net — though i’ll likely be asking for help
3)
how long would you estimate an average person would take to learn enough VB to create common macros (say 12 hours per day)? without having any prior programming knowledge, and assuming they had access to quality (quick) learning materials -
macropod
AskWoody_MVPNovember 30, 2012 at 4:38 pm #1360380 -
macropod
AskWoody_MVPNovember 30, 2012 at 4:44 pm #13603811. If you have urls in the form of ‘https’, you can do both versions at the same time by using:
.Text = “htt[ps]{1,2}://[! ]{1,}”2. You can do an ordinary Find/Replace, where:
Find = ‘. ‘
Replace = ‘.^p’
(without the quote marks)3. That’s like asking “how long is a piece of string”.
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
-
-
WScomputerbabyproblems
AskWoody LoungerNovember 30, 2012 at 5:52 pm #1360391………………….the excerpts you quoted is exactly what i had…… so thereby the context is actually enhanced by them being in your post. maybe im just too sensitive so nevermind………….
#2 ‘^p’ without the period was perfect though wasnt a good idea with the links…………………… (helpful on a separate .docx though)
#3 wasn’t helpful and a really bad metaphor. the question is answerable, and is only asking for your most educated guess. i dont think i’ll come back and ask for help because of that………
Viewing 2 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Windows 11 blocks Chrome 137.0.7151.68, 137.0.7151.69
by
Alex5723
1 hour, 38 minutes ago -
Are Macs immune?
by
Susan Bradley
1 hour, 10 minutes ago -
HP Envy and the Function keys
by
CWBillow
4 hours, 43 minutes ago -
Microsoft : Removal of unwanted drivers from Windows Update
by
Alex5723
12 hours, 54 minutes ago -
MacOS 26 beta 1 dropped support for Firewire 400/800
by
Alex5723
13 hours, 12 minutes ago -
Unable to update to version 22h2
by
04om
13 hours, 31 minutes ago -
Windows 11 Insider Preview Build 26100.4482 (24H2) released to Release Preview
by
joep517
20 hours, 40 minutes ago -
Windows 11 Insider Preview build 27881 released to Canary
by
joep517
20 hours, 42 minutes ago -
Very Quarrelsome Taskbar!
by
CWBillow
6 hours, 32 minutes ago -
Move OneNote Notebook OFF OneDrive and make it local
by
CWBillow
1 day, 9 hours ago -
Microsoft 365 to block file access via legacy auth protocols by default
by
Alex5723
22 hours, 24 minutes ago -
Is your battery draining?
by
Susan Bradley
3 hours, 24 minutes ago -
The 16-billion-record data breach that no one’s ever heard of
by
Alex5723
1 hour, 11 minutes ago -
Weasel Words Rule Too Many Data Breach Notifications
by
Nibbled To Death By Ducks
1 day, 13 hours ago -
Windows Command Prompt and Powershell will not open as Administrator
by
Gordski
21 hours, 36 minutes ago -
Intel Management Engine (Intel ME) Security Issue
by
PL1
21 hours, 48 minutes ago -
Old Geek Forced to Update. Buy a Win 11 PC? Yikes! How do I cope?
by
RonE22
14 hours, 28 minutes ago -
National scam day
by
Susan Bradley
21 hours, 21 minutes ago -
macOS Tahoe 26 the end of the road for Intel Macs, OCLP, Hackintosh
by
Alex5723
17 hours, 30 minutes ago -
Cyberattack on some Washington Post journalists’ email accounts
by
Bob99
2 days, 14 hours ago -
Tools to support internet discussions
by
Kathy Stevens
1 day, 3 hours ago -
How get Group Policy to allow specific Driver to download?
by
Tex265
2 days, 5 hours ago -
AI is good sometimes
by
Susan Bradley
2 days, 21 hours ago -
Mozilla quietly tests Perplexity AI as a New Firefox Search Option
by
Alex5723
2 days, 11 hours ago -
Perplexity Pro free for 12 mos for Samsung Galaxy phones
by
Patricia Grace
3 days, 22 hours ago -
June KB5060842 update broke DHCP server service
by
Alex5723
3 days, 20 hours ago -
AMD Ryzen™ Chipset Driver Release Notes 7.06.02.123
by
Alex5723
4 days ago -
Excessive security alerts
by
WSSebastian42
2 days, 15 hours ago -
* CrystalDiskMark may shorten SSD/USB Memory life
by
Alex5723
4 days, 10 hours ago -
Ben’s excellent adventure with Linux
by
Ben Myers
2 hours, 10 minutes ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.