There may be times when you have an Excel sheet with a whole lot of data containing hyperlinks. And you may find that although you do need some of that data, you don't really want all those hyperlinks for your current project. If you want to remove the hyperlinks manually, it can be an excruciating task. If you want to automate the task and remove all of hyperlinks in one go, you can make use of macros.
Macros may be a little intimidating to a beginner, but today, you can find lots of instant solutions available online that saves you the trouble of creating one from scratch. In this tutorial, I'll show you how to remove hyperlinks in an Excel 2010 worksheet with a simple macro. Just follow the instructions given below and you will be on your way to a very productive workday.
- 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 Remove Hyperlinks in an Excel 2010
Basic Macro Info
Level of Difficulty
This macro will allow a user to remove all hyperlinks in a worksheet.
How to Use the Remove Hyperlinks Macro
1. Copy the code.
2. Open Excel 2010.
Ads by Google
3. Press Alt + F11 to enter the Visual Basic Editor.
4. If necessary, press Ctrl + R to show the Project Explorer.
5. Right-click desired file on left (in bold).
6. Choose Insert -> Module.
7. Paste code into the right pane.
8. Press Alt + Q to close the VBE.
9. Save the workbook in the XLSM format.
10. 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.
11. On the Developer tab, in the Code group, click Macros.
12. In the Macro dialog box, select the macro and click Run.