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 | Easy |
Works On | Excel 2007,2010 |
Description | This macro will allow a user to remove all hyperlinks in a worksheet. |
CODE
Sub Remove_Hyperlinks()
ActiveSheet.Hyperlinks.Delete
End Sub
How to Use the Remove Hyperlinks Macro
1. Copy the code.
2. Open Excel 2010.
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.
Sample Workbook with Remove Hyperlink Macro
To test the macro, please download the sample file Remove Hyperlinks Macro.xlsm.
Select all cells by clicking in the upper left corner or CNTRL+A. Right click in any cell and select remove hyperlink. Excel 2010. Maybe works on prior versions. No macro needed.
Hi Moriarty. Thanks for stopping by and sharing your tips with our audience. If you are interested in sharing your expertise with our readers, you could consider writing guest posts for us. The guidelines are available at http://theapptimes.com/contact/guest-blogging-guidelines.