• About
  • Contact
  • Privacy Policy
  • Submit For Review
  • Template Gallery
  • Excel 2016 Udemy Course
  • Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

TheAppTimes

App Reviews, Tutorials, & Gadget News Hub

  • Gadgets
  • How To
  • Mobile Apps
  • Software and Web Apps
  • Buying Guides
  • Show Search
Hide Search
Home » How To » Extract URLs From Hyperlinked Text Using Macros in Excel 2010

Extract URLs From Hyperlinked Text Using Macros in Excel 2010

September 23, 2010

There may be instances when long hyperlinked text has been made pretty by cloaking it with other text. While that may serve some purposes, there may be times when you want to view the URL’s that are behind the hyperlinks. If you ever find yourself in such a situation, you can take advantage of this simple macro that we put together to enable you to extract URLs from hyperlinked text in Excel 2010.

  • Tip: If you’d like to learn about how to create macros without writing them from scratch, check out our tutorial on Creating Macros Using the Macro Recorder.

How to Extract URLs From Hyperlinked Text Using Macros

Basic Macro Info

Level of Difficulty : Easy

Works On: Excel 2007, 2010, 2013, 2016

Description : This macro will allow a user to extract the URLs from all hyperlinks in a worksheet.

Code:

Sub Extract_URLs()
Dim Hyli as Hyperlink
For Each Hyli in ActiveSheet.Hyperlinks
Hyli.Range.Offset (0, 2).Value=Hyli.Address
Next
End Sub

How to Use the Extract URLs Macro

1. Copy the code.

2. Open Excel. Press Alt + F11 to enter the Visual Basic Editor. If necessary, press Ctrl + R to show the Project Explorer.

3. Right-click the desired file on left (in bold).

4. Choose Insert -> Module.

5. Paste code into the right pane.

6. Press Alt + Q to close the VBE.

7. Save the workbook in the XLSM format.

8. Select the Developer tab. (If you have a problem displaying the Developer tab, please read our post How to Activate the Developer Tab in Excel 2010.

9. On the Developer tab, in the Code group, click Macros.

ALSO READ:  How to Get Rid of the Paste Options Menu in Word, Excel and PPT

10. In the Macro dialog box, select the macro and click Run.

Sample Workbook with Extract URLs Macro

To test the Extract URLs macro, please download the sample file Extract URLs.xlsm.

Tweet1
Share2
WhatsApp
Pin11
Buffer2
16 Shares
Tweet1
Share2
WhatsApp
Pin11
Buffer2
16 Shares

Filed Under: How To Tagged With: excel how to, excel macros

You May Also Like

Ways to Use Excel Mobile - TATFI
10 Creative Ways to Use Excel Mobile in your Business
How to Get Rid of the Paste Options Menu in Word, Excel and PPT
How to Get Rid of the Paste Options Menu in Word, Excel and PPT
How to Calculate Number of Days Between Two Dates in Excel
How to Calculate Number of Days Between Two Dates in Excel

About Adeline Gear

Adeline is a tech enthusiast who loves exploring the latest tools and applications in the marketplace. She also loves her Android and spends time reviewing apps and playing games when she has the time.

Reader Interactions

Comments

  1. Janet says

    December 1, 2011 at 5:20 am

    That was awesome. Thank you so much.

    Reply
  2. Thorsten says

    February 6, 2012 at 12:43 am

    Easy to understand, worked like a charm, very helpful. Thank you very much!
    Thorsten

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Hottest New Gadgets!

Amazfit Falcon Smartwatch - TATFI

The Amazfit Falcon is a Military Grade Smartwatch with Premium Looks and Great Features

Couchmaster Cyboss Ergonomic Couch Desk - TATFI

Couchmaster Cyboss is an Ergonomic Desk to Keep Off Neck Pain

Philips Hue Festavia String Lights - TATFI

Add a Bit of Sparkle to Your Christmas Tree with Philips Hue Festavia String Lights

Samsung Galaxy Tab A7 Lite Kids Edition - TATFI

This Kid Friendly Tablet from AT&T is a Thoughtful Gift for Your Little One This Christmas

Is An iPhone Really Worth It - TATFI

Is an iPhone is Really Worth It?

Devices You Might Want to Try - TATFI

4 Fantastic Devices You Might Want to Try

Amazon Kindle 2022 - TATFI

Meet the Amazon Kindle 2022 – Packed with New Features

Popular Tags

android android apps android games android how to apple casino games chrome extensions excel excel how to facebook gadgets gaming gmail google instagram ios apps ios games ios how to ios tips ipad iphone kids apps learn excel management microsoft music apps new releases outlook how to photo apps powerpoint powerpoint how to productivity Samsung security smartphone smartphones software tablet tablets twitter web browsers windows 10 word how to xbox youtube

Disclosure

TheAppTimes is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites.
Approaches to Digital Marketing - TATFI

Blending Technical and Content-Centric Approaches to Digital Marketing

Tech Tips For Startups - TATFI

Useful Tech Tips For Startups

Boox Tab X Android eReader - TATFI

Boox Tab X is an Android eReader That Helps You Do More Than Just Read

Best e Readers to Buy in 2023 - TATFI

5 Best eReaders to Buy in 2023

Best Translation Apps for Android - TATFI

5 Great Translation Apps for Android

Dynamic Island Feature on Your Android - TATFI

How to Get the Dynamic Island Feature on Android

Connected TV Advertising In 2023 - TATFI

5 Things You Need To Know About Connected TV Advertising In 2023

Smart Cost Cutting Strategies for SMEs - TATFI

5 Smart Cost Cutting Strategies for SMEs

Frequently Asked Questions About PMP - TATFI

Frequently Asked Questions About PMP

Technologies behind the online casino world - TATFI

The Latest Technologies Behind the Online Casino World

B2B Marketing Strategies To Grow Your Business - TATFI

Effective B2B Marketing Strategies To Grow Your Business

Exciting Games To Play This Christmas - TATFI

Exciting Games To Play With Family And Friends This Christmas

TheAppTimes © 2023 // Runs on StudioPress