Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in


How to quickly delete all html objects in Excel?

Maybe, some of you usually copy some information from the website and paste it into the Excel worksheet, and some html objects, such as check boxes, drop down lists, buttons and so on will be pasted into the worksheet as well. But you don’t want the html objects, how could you get rid of them in Excel? This tutorial will help you solve this problem.

Delete all objects in worksheet with Go To Special command

Delete all objects in worksheet with VBA code

Delete all html objects only in worksheet with Kutools for Excel with one clickgood idea3

good idea4Delet Web Controls

Kutools' Delete Web Controls function can quickly remove only html objects from the active worksheet.
doc delete web controls 2

arrow blue right bubble Delete all objects in worksheet with Go To Special command

With this Go To Special command, you can select all of the objects either the html objects or Excel objects first, and then with the Delete key to remove them.

1. Click Home > Find & Select > Go To Special, see screenshot:


2. In the Go To Special dialog box, click Objects, and then click OK.


3. And all of the objects have been selected, then press Delete key on the keyboard. The selected objects have been removed. see screenshots:


arrow blue right bubble Delete all objects in worksheet with VBA code

With the following short VBA code, you can also get rid of the objects in the active worksheet.

1. Hold down the ALT + F11 keys to open the Microsoft Visual Basic for Applications window.

2. Click Insert > Module, and paste the following code in the Module Window.

Sub DeleteObjects()
Dim obj As Object
For Each obj In ActiveSheet.Shapes
End Sub

3. Then press F5 key to run the code, all of the objects in the active worksheet will be removed.

arrow blue right bubble Delete all html objects in worksheet with Kutools for Excel with one click

Both of the above two methods will remove all of the objects including the other Excel objects, such as pictures, charts, or shapes. But if you have Kutools for Excel’s Delete Web Controls tool, you can easily delete only the html objects in the active worksheet as you need.

Kutools for Excel, with more than 120 handy functions, makes your jobs easier. 

After installing Kutools for Excel, please do as below:(Free Download Kutools for Excel Now!)

Click Kutools > Delete Tools > Delete Web Controls, see screenshot:

doc delete web controls 2

And then all of the html objects in the active worksheet will be deleted.

Click Delete Web Controls to know more about this feature.

Tip.If you want to quickly remove special characters form a string, please try to use the Kutools for Excel’s Remove Characters as shown in the following screenshot. It’s full function without limitation in 60 days, please download and have a free trial now.

Remove Characters

doc remove characters

Relative Articles

Recommended Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 71%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 82% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    gitte · 2 years ago
    Thanks,i did the Go To Special it worked. :)
  • To post as a guest, your comment is unpublished.
    EEE · 3 years ago
    Thank you! This worked!