• 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 Use Text to Speech to Check Errors in Excel

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!

Mobvoi TicWatch Pro 5 - TATFI

The Mobvoi TicWatch Pro 5: A Fitness Smartwatch for Health Enthusiasts

Razer Hammerhead Pro HyperSpeed - TATFI

Razer Hammerhead Pro HyperSpeed: Ultimate Gaming Earbuds

MagEZ Folio 2 Magnetic Case for iPad Pro - TATFI

MagEZ Folio 2 is a Magnetic Case for iPad Pro With Convenient Viewing Angles

Logitech MX Anywhere 3S - TATFI

Logitech MX Anywhere 3S: The Wireless Mouse for On-the-Go Productivity

Logi Dock Flex - TATFI

The Logi Dock Flex Docking Station is a Great Solution to Manage Shared Workspaces

Best Earbuds for Android Devices (2023) - TATFI

Best Earbuds for Android Devices (2023)

Sony HT-S2000 Soundbar - TATFI

Sony Launches the Incredible HT-S2000 3.1ch Dolby Atmos Soundbar

Popular Tags

android android apps android games android how to apple casino games chrome extensions excel excel how to facebook gadgets gaming gmail google 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 how to productivity Samsung security smartphone smartphones smartwatches software tablet tablets technology 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.
Houseplant Care App Planta - TATFI

Planta: The Ultimate Houseplant Care App for iOS Users

Top Android Tower Defense Games to Play in 2023- TATFI

Awesome Android Tower Defense Games to Play in 2023

Assassin's Creed Mirage - TATFI

Assassin’s Creed Mirage: A Comprehensive Overview

Mobvoi TicWatch Pro 5 vs Google Pixel Watch - TATFI

Mobvoi TicWatch Pro 5 vs Google Pixel Watch: A Comparative Look

Mobvoi TicWatch Pro 5 vs TicWatch Pro 3 Ultra - TATFI

Mobvoi TicWatch Pro 5 vs TicWatch Pro 3 Ultra: A Comprehensive Comparison

How to Link Your iPhone to Windows 11 - TATFI

How to Link Your iPhone to Windows 11 for Seamless Connectivity

Cooperative Shooter Helldivers 2 for PS5 - TATFI

Intense Cooperative Shooter Helldivers 2 All Set to Return This Year

Windows 11 Features for Businesses - TATFI

Microsoft Unveils the Latest Windows 11 Features for Businesses

How to Lock Your Google Account from Your iPhone - TATFI

How to Lock Your Google Account from Your iPhone Using Google Smart Lock

Convert Handwritten Lists to Google Keep Notes - TATFI

How to Convert Handwritten Lists to Google Keep Notes: A Comprehensive Guide

Best VPN Services for Small Business - TATFI

Top VPN Services for Small Business in 2023

How to Control Your Apple Watch Using Hand Gestures

How to Use AssistiveTouch Gestures to Control Your Apple Watch

TheAppTimes © 2023 // Runs on StudioPress