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 ad from Campaign Manager in Windows 10 (Awaiting moderation)
by
Jim McKenna
2 hours, 26 minutes ago -
Phishers extract Millions from HMRC accounts..
by
Microfix
11 hours, 5 minutes ago -
Windows 10 22H2 Update today (5 June) says up-to-date but last was 2025-04
by
Alan_uk
12 hours, 57 minutes ago -
Thoughts on Malwarebytes Scam Guard for Mobile?
by
opti1
16 hours, 5 minutes ago -
Mystical Desktop
by
CWBillow
16 hours, 19 minutes ago -
Meta and Yandex secretly tracked billions of Android users
by
Alex5723
11 hours, 5 minutes ago -
MS-DEFCON 2: Do you need that update?
by
Susan Bradley
6 hours, 30 minutes ago -
CD/DVD drive is no longer recognized
by
WSCape Sand
1 day, 7 hours ago -
Windows 11 24H2 Default Apps stuck on Edge and Adobe Photoshop
by
MikeBravo
1 day, 10 hours ago -
North Face and Cartier customer data stolen in cyber attacks
by
Alex5723
1 day, 8 hours ago -
What is wrong with simple approach?
by
WSSpoke36
1 day ago -
Microsoft-Backed Builder.ai Set for Bankruptcy After Cash Seized
by
Alex5723
1 day, 19 hours ago -
Location, location, location
by
Susan Bradley
10 hours, 18 minutes ago -
Cannot get a task to run a restore point
by
CWBillow
1 day, 21 hours ago -
Frustrating search behavior with Outlook
by
MrJimPhelps
1 day, 12 hours ago -
June 2025 Office non-Security Updates
by
PKCano
2 days, 8 hours ago -
Secure Boot Update Fails after KB5058405 Installed
by
SteveIT
10 hours, 38 minutes ago -
Firefox Red Panda Fun Stuff
by
Lars220
2 days, 7 hours ago -
How start headers and page numbers on page 3?
by
Davidhs
2 days, 18 hours ago -
Attack on LexisNexis Risk Solutions exposes data on 300k +
by
Nibbled To Death By Ducks
1 day, 21 hours ago -
Windows 11 Insider Preview build 26200.5622 released to DEV
by
joep517
3 days, 3 hours ago -
Windows 11 Insider Preview build 26120.4230 (24H2) released to BETA
by
joep517
3 days, 3 hours ago -
MS Excel 2019 Now Prompts to Back Up With OneDrive
by
lmacri
2 days, 16 hours ago -
Firefox 139
by
Charlie
2 days, 9 hours ago -
Who knows what?
by
Will Fastie
1 day, 11 hours ago -
My top ten underappreciated features in Office
by
Peter Deegan
3 days, 3 hours ago -
WAU Manager — It’s your computer, you are in charge!
by
Deanna McElveen
21 hours, 24 minutes ago -
Misbehaving devices
by
Susan Bradley
1 day, 23 hours ago -
.NET 8.0 Desktop Runtime (v8.0.16) – Windows x86 Installer
by
WSmeyerbos
4 days, 9 hours ago -
Neowin poll : What do you plan to do on Windows 10 EOS
by
Alex5723
1 day, 8 hours 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.