I use Excel a lot and find it annoying that when I apply some formatting to a cell and then delete the contents of the cell, the formatting remains. How can I quickly delete both the contents and the formatting of a cell?

We’ll do this three ways. The first way involves using the built-in menu function. The second method involves creating a macro for the function, which we’ll assign (Ctrl)(D) as the keyboard shortcut. Pressing (Ctrl)(D) on the cell will delete the contents and the formatting of the cell. The third method involves customising the toolbar.

Using Built-in Menu Function:

  1. Click the cell or cells whose content and formatting you want deleted.
  2. Select the Edit menu then Clear then All. All contents and formatting are deleted.

Creating a Macro:

  1. Select the cell whose contents and formatting you wish to delete.

  2. Select the Tools menu then Macro then Record New Macro.

  3. Enter a name for the macro, such as delall
    Macro name

  4. Click inside the Shortcut key section and press the (D) key on the keyboard
    Shortcut key
    This tells Excel that you want to use (Ctrl)(D) as the keyboard shortcut for the macro. Click OK and the recording begins.

  5. Now you will record the steps that deletes the formatting and the contents. Select the Edit menu then select Clear then All. All contents and formatting in the cell should disappear.

  6. Click the Stop button on the macro toolbar to complete the macro.
    Stop recording button

When a cell or block of cells contains both contents and formatting, firstly select the cell or the block of cells then press (Ctrl)(D). The macro runs and all is deleted.

Customising the Toolbar:

  1. Select the Tools menu then Customize…

  2. Click the Commands tab.

  3. Click Edit under Categories and scroll down the list of Commands on the right.

  4. Find the word All and click on it.
    Commands

  5. Drag the word up to an empty place in one of the toolbars where you want the button to go. As you drag, the pointer will be this shape Drag-pointer, and when you let go the All button appears in the toolbar..

  6. Click the Close button in the Customize dialogue box.

Now, when you select a cell or block of cells and then click the All button in the toolbar, both contents and formatting will be deleted.

Add to Technorati Favorites


// Related Posted - GOOGLE!

Loading



Related Websites
Saturday, May 10th, 2008 at 13:58
No comments yet.

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>