+ Reply to Thread
Results 1 to 4 of 4

Clear data from multiple tables - modify code

  1. #1
    Forum Contributor
    Join Date
    06-28-2018
    Location
    New York
    MS-Off Ver
    MS Office 2010
    Posts
    184

    Clear data from multiple tables - modify code

    Hi All,

    I am using the below to clear out an existing table. Is there an easy way to modify this to perform the same command on multiple tables within the same sheet? Please note there is a pivot table that I want to ensure remains unchanged as I clear out these tables. Any help is greatly appreciated. Thank you.


    Please Login or Register  to view this content.

  2. #2
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,958

    Re: Clear data from multiple tables - modify code

    Perhaps...
    Please Login or Register  to view this content.
    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

  3. #3
    Forum Contributor
    Join Date
    06-28-2018
    Location
    New York
    MS-Off Ver
    MS Office 2010
    Posts
    184

    Re: Clear data from multiple tables - modify code

    Hi Sintek,

    Thank you for the reply, I really appreciate it. I actually just tested a very similar code which appears to work well (complete code below). It is almost identical to yours, however I added an IF clause for error handling. Thanks again!

    Please Login or Register  to view this content.

  4. #4
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,958

    Re: Clear data from multiple tables - modify code

    Great going...That is how one learns...

    Please remember to mark thread as solved...
    Last edited by Sintek; 09-06-2019 at 11:49 AM.

+ 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. Modify code that splits data from master worksheet to multiple workbooks
    By Bluebll81 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-20-2019, 11:01 AM
  2. [SOLVED] Clear data fom multiple tables
    By DeanMcK in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-24-2019, 07:39 PM
  3. Clear many empty tables of data
    By salmasaied in forum Excel Programming / VBA / Macros
    Replies: 42
    Last Post: 11-22-2016, 06:12 PM
  4. [SOLVED] Clear all filters (tables) on multiple worksheets
    By lucasreece in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-26-2015, 07:30 AM
  5. Modify Row Labels on Multiple Pivot Tables
    By bhenlee in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-18-2015, 04:57 PM
  6. [SOLVED] can someone help modify the clear command to only clear columns from A-G?
    By psunursingguy21 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-30-2013, 03:52 PM
  7. [SOLVED] Modify Auto Clear - VB Code
    By SVTF in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-01-2012, 02:31 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