+ Reply to Thread
Results 1 to 5 of 5

What is the proper way to clear contents?

  1. #1
    Forum Contributor
    Join Date
    03-08-2011
    Location
    Lubbock, TX, USA
    MS-Off Ver
    MS OFFICE 365 EXCEL, OUTLOOK, WORD, POWERPOINT
    Posts
    194

    What is the proper way to clear contents?

    I've done this over and over and it still isn't right.
    The worksheet is from A1:V415
    When I hit Cntrl+End I land on V1048531
    I've selected from row 416 to 1048576 and then on the ribbon I select clear > clear all
    Save
    close.
    When I reopen it, a cntrl+end brings me right back to V1048531
    I've also tried the above with cntrl minus as well.

    Excel just recently started acting up. Non responsive, slow as molasses.
    I disabled a recent add in while in safe mode. And I have been trying to clear the contents of visibly empty cells.

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: What is the proper way to clear contents?

    .
    The only way I've been able to permanently delete unseen contents from a range is to highlight the range
    as you have already done ... right click ... select DELETE ... then decide which way you want the replacement
    cells to fill in the cell you are deleting.

    If you have never done this before ... probably good to practice on an example sheet first.

  3. #3
    Forum Contributor
    Join Date
    03-08-2011
    Location
    Lubbock, TX, USA
    MS-Off Ver
    MS OFFICE 365 EXCEL, OUTLOOK, WORD, POWERPOINT
    Posts
    194

    Re: What is the proper way to clear contents?

    I've done that in the past. But, that technique slipped my mind. Thanks for re-engaging my under employed brain cells.

  4. #4
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: What is the proper way to clear contents?

    .
    You are welcome.

    Cheers

  5. #5
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: What is the proper way to clear contents?

    A couple additions. Close isnt generally require Excel 2013+ (saving now recovers the used range). I generally reserve this for very large/problematic files in which closing and reopening may reduce its overall footprint in memory.

    I usually Do like you have, Ctrl+End to get to the bottom right most cell in the used range. You then have to manually evaluate where your last used row AND last used column are. Its possible you have excess rows and/or columns (which will vary sheet to sheet). If I have both I generally start with the smaller of the 2 excess ranges (columns or rows). I click the first blank row/column's header and then Ctrl+Shift+Down arrow. That should select to the bottom or right most part of the sheet. I then check my status bar for any count/sum (if there is a count/sum then some of the cells selected are not actually empty and I go back to manually evaluating my true used range again). I will then try clear all first. If it works it generally sends you back to the first empty row/column selected (if not I later try delete). I then select a single cell at the top of the sheet (like A1) and hit save, then check the same range again. If it hadnt cleared I repeat the steps but instead after selecting the rows/columns I right click on their headers and select delete. This again should shift you to the first blank row/column. I then select a cell like A1 and save. Then recheck.

    Clear all sometimes works, Delete seems to almost always work. So why use clear all? Well it can be faster and is less prone to triggering errors (like not enough memory). This is because you are clearing contents out of the cells, not removing them and replacing them with x number of new ones. In other words when you delete rows 500:1mil it removes them and then adds back a new set of rows from 500:1mil. Shifting cells/content in Excel can take alot of time, even if they are empty ranges.

    There are some cases (especially at the end of a sheet, last row/last column) where deleting can cause ref errors in formulas and/or may not correctly clear out the range, and sometimes clear all works there.

    Depending on what version of Excel you have, you may combine this manual process with something like enabling the Inquire addin (Excel 2013+) and using the clear excess cell formatting button (this clears things like fill colors in cells outside your used range).
    Ways to get help: Post clear questions, explain your overall goal, supply as much background as possible, respond to questions asked of you by those trying to help and post sample(s) files.

    "I am here to help, not do it for people" -Me

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Clear Contents depending on cell contents
    By terratushi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-15-2017, 08:02 PM
  2. Clear merged cell contents in comand button(clear all)
    By mohan_984 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-25-2015, 10:39 AM
  3. clear contents of entire sheet except the contents of the table
    By wayneg in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-06-2015, 08:41 AM
  4. [SOLVED] Clear contents based on contents of another cell
    By Katrina DTE in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-13-2013, 02:44 PM
  5. Clear row contents and copy row contents. 2
    By fatalcore in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-24-2011, 10:42 AM
  6. Copy list contents down, then clear contents
    By hektisk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-07-2011, 04:34 PM
  7. Clear sheet contents but retain Clipboard contents
    By nebb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-25-2007, 01:42 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1