+ Reply to Thread
Results 1 to 6 of 6

Clear contents of tables

  1. #1
    Registered User
    Join Date
    06-16-2012
    Location
    Canada
    MS-Off Ver
    2019
    Posts
    58

    Clear contents of tables

    How can I clear the contents of 15 worksheets that are tables, all at once? I can do it one by one I know, but is there a way to do them all (excel says no).

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Clear contents of tables

    Perhaps select all the worksheet tabs and delete the group. Then if necessary add new worksheets.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    06-16-2012
    Location
    Canada
    MS-Off Ver
    2019
    Posts
    58
    I just want to delete the content but keep the template - need to re-use for 2022-2023 expenses, just get rid of the 2021-2022 inputs.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Clear contents of tables

    Are you using proper xltm or xltx files which are true templates which prevent the user over-riding the files, or are you using the term loosely and simply mean a standard .xlsx or xlsm file?

  5. #5
    Registered User
    Join Date
    06-16-2012
    Location
    Canada
    MS-Off Ver
    2019
    Posts
    58
    I added an example file. If you 'select all sheets' and try to 'clear contents' within for all at the same time, you can't.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,199

    Re: Clear contents of tables

    One issue is that you clear all formula (using ClearContents) so it might be better to use VBA just to clear data.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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 Contents specific range of many tables
    By salmasaied in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-05-2016, 04:01 PM
  3. 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
  4. 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
  5. [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
  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