
- MS Excel Basics
- Excel - Home
- Excel - Getting Started
- Excel - Explore Window
- Excel - Backstage
- Excel - Entering Values
- Excel - Move Around
- Excel - Save Workbook
- Excel - Create Worksheet
- Excel - Copy Worksheet
- Excel - Hiding Worksheet
- Excel - Delete Worksheet
- Excel - Close Workbook
- Excel - Open Workbook
- Excel - Context Help
- Editing Worksheet
- Excel - Insert Data
- Excel - Select Data
- Excel - Delete Data
- Excel - Move Data
- Excel - Rows & Columns
- Excel - Copy & Paste
- Excel - Find & Replace
- Excel - Spell Check
- Excel - Zoom In-Out
- Excel - Special Symbols
- Excel - Insert Comments
- Excel - Add Text Box
- Excel - Undo Changes
- Formatting Cells
- Excel - Setting Cell Type
- Excel - Setting Fonts
- Excel - Text Decoration
- Excel - Rotate Cells
- Excel - Setting Colors
- Excel - Text Alignments
- Excel - Merge & Wrap
- Excel - Borders and Shades
- Excel - Apply Formatting
- Formatting Worksheets
- Excel - Sheet Options
- Excel - Adjust Margins
- Excel - Page Orientation
- Excel - Header and Footer
- Excel - Insert Page Breaks
- Excel - Set Background
- Excel - Freeze Panes
- Excel - Conditional Format
- Working with Formula
- Excel - Creating Formulas
- Excel - Copying Formulas
- Excel - Formula Reference
- Excel - Using Functions
- Excel - Builtin Functions
- Advanced Operations
- Excel - Data Filtering
- Excel - Data Sorting
- Excel - Using Ranges
- Excel - Data Validation
- Excel - Using Styles
- Excel - Using Themes
- Excel - Using Templates
- Excel - Using Macros
- Excel - Adding Graphics
- Excel - Cross Referencing
- Excel - Printing Worksheets
- Excel - Email Workbooks
- Excel- Translate Worksheet
- Excel - Workbook Security
- Excel - Data Tables
- Excel - Pivot Tables
- Excel - Simple Charts
- Excel - Pivot Charts
- Excel - Keyboard Shortcuts
- MS Excel Resources
- Excel - Quick Guide
- Excel - Useful Resources
- Excel - Discussion
How to Apply a Button to Clear Specific Cells in Excel?
Generally, when we need to edit multiple cells very frequently, we will be selecting the cells using the ctrl command and clicking on delete, but sometimes it can be a problem when we select different cells or when we miss selecting some cells. We can solve this problem by following the process mentioned in this article. This article will help you understand how we can apply a button to clear specific cells in Excel. This process has two parts: creating a button and assigning a macro to the button.
Applying a Button to Clear Specific Cells in Excel
Here we will first insert a shape and then assign a macro to it. Let us see a simple process to see how we can apply a button to clear specifics in cells. As this process can’t be done easily, we need to use the VBA application to complete our process.
Step 1
Assume we have an excel sheet with data similar to that shown in the image below.

Now to create a button, click on "Insert" and "Illustrations," then select "Rectangle" under "Shapes," then draw a rectangle and name it "Clear," as shown in the below image.

Step 2
Now, right-click on the sheet name and select view code, then click on insert and select module, then enter the programme in the window as shown in the below image.
Program
Sub Clearcells() 'Updateby Nirmal Range("A1", "A3").Clear Range("C8", "C9").Clear Range("B4", "B7").Clear End Sub

Then save the sheet and close the VBA application.
Step 3
Now right-click on the button and select "Assign macro" from the menu; then, in the pop-up, select the macro name "Clear cells" and click on "OK" to successfully create the "Clear" button.

Step 4
Now, every time we click on the clear button, the data in the cells will be cleared.

Conclusion
In this tutorial, we used a simple example to demonstrate how we can create a "Clear" button in Excel to highlight a particular set of data.
- Related Articles
- How to clear restricted values in cells in Excel?
- How to Apply a Button to Open Another Workbook in Excel?
- How to Apply Same Formula to Multiple Cells in Excel?
- How to Apply Colour Gradient Across Multiple Cells in Excel?
- How to Allow Only Date Format in Specific Cells in Excel?
- How to Copy Cells If Column Contains Specific Value/Text in Excel?
- How to assign specific colors to specific cells in a Matplotlib table?
- How to Add Units to Cells in Excel?
- How to highlight unlocked cells in Excel?
- How to Copy and Paste Merged Cells to Single Cells in Excel?
- How to Apply Spell Check in Excel Textbox?
- How to add borders automatically to cells in Excel?
- How to Apply a Template to an Existing Chart/Workbook in Excel?
- How to clear the Entry widget after a button is pressed in Tkinter?
- How to Automatically Fill Increment Cells in Excel?
