How to delete all charts in Excel Workbooks?
Charts are excellent for clearly presenting data in Excel, but there are times when you might need to remove them. Whether you're decluttering your workbook or preparing data for a different type of analysis, this guide will show you several methods to easily and quickly delete all charts from your Excel workbooks.
- Delete all Charts in the active worksheet with VBA
- Delete all Charts in active worksheets or workbooks with Kutools for Excel
Delete all charts in the active worksheet with VBA
If you delete each chart in Microsoft Excel one by one manually, it must be arduous and time-consuming. Using VBA Macro will make your work easier.
Step 1: Hold down the ALT + F11 keys in Excel, and it opens the Microsoft Visual Basic for Applications window.
Step 2: Click Insert >> Module, and paste the following macro in the Module Window.
Sub DeleteallCharts()
'Updated by Extendoffice 2024/07/23
Dim chtObj As ChartObject
For Each chtObj In ActiveSheet.ChartObjects
chtObj.Delete
Next
End Sub
Step 3: Press the F5 key to run this macro.
Note: This macro will only remove all charts in the active worksheet.
Delete all charts in active worksheets or workbooks with Kutools for Excel
Studying macros may be not easy for Microsoft Excel's common users. Please do not worry about it. Kutools for Excel's Delete Illustrations & Object…. can help you to delete all charts in the active worksheets or workbook.
Step 1: Click the Kutools > Delete > Delete Illustrations & Object. See screenshot:
Step 2: In the Delete Illustrations & Object dialog box, check the Charts option in the Delete section. See screenshot:
Step 3: Check one of the options in the Look in section. See screenshot:
- If you need to delete all charts in active sheets, check the Active sheet option;
- If you need to delete all charts in the whole workbook, check the All sheets option;
- If you need to delete all charts in several specific worksheets, check the Selected sheets option.
In this case, I select All sheets, see screenshot:
Step 4: Click OK.
Kutools for Excel's Delete Illustrations & Object….can help us delete all charts, lines, pictures, auto shapes, smart arts, text boxes, linked OLE objects, and embedded OLE objects in active worksheets, selected worksheets or all worksheets of the current workbook. Click to know more about this Delete Illustrations & Object feature
Related Articles
Best Office Productivity Tools
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
![Screen Shot of Excel (with Office Tab installed)](http://cdn.extendoffice.com/images/stories/kte-module/officetab-bottom-02.gif)