+ Reply to Thread
Results 1 to 2 of 2

Looping through tables in vba, igrnore empty tables?

  1. #1
    Forum Contributor
    Join Date
    08-29-2017
    Location
    London England
    MS-Off Ver
    2016
    Posts
    194

    Looping through tables in vba, igrnore empty tables?

    Hi all,

    So I have this following code (piece):

    Please Login or Register  to view this content.
    Which was working perfectly until I had 5 tables and the last one was the "BLANKTable" but I had to add a new table, to which the interior colour change should apply.. but if the BLANKTable is empty then the code throws an error. (and I realized other tables may end up empty as well before this step, so this code piece is really not right)

    I can see why.. but I don't know how to loop through all the tables except for the ones that's databody range is empty.. which is what I would need here I think. Could someone help with this?

    Question posted on Mr.Excel Message board as well, link: https://www.mrexcel.com/forum/excel-...ml#post5276662
    Last edited by LIL2606; 05-14-2019 at 07:47 AM. Reason: cross post link

  2. #2
    Forum Contributor
    Join Date
    08-29-2017
    Location
    London England
    MS-Off Ver
    2016
    Posts
    194

    Re: Looping through tables in vba, igrnore empty tables?

    yeah.. I had the solution in the question....


    Please Login or Register  to view this content.
    just ignore me please!

+ 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] Tables cells remove empty ones auto and reverse
    By Erwin1970 in forum Excel Formulas & Functions
    Replies: 27
    Last Post: 09-08-2018, 05:24 AM
  2. Replies: 5
    Last Post: 12-04-2017, 10:33 AM
  3. [SOLVED] looping through Tables in different sheets
    By sintek in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-12-2017, 03:13 PM
  4. Clear many empty tables of data
    By salmasaied in forum Excel Programming / VBA / Macros
    Replies: 42
    Last Post: 11-22-2016, 06:12 PM
  5. [SOLVED] DELETE empty rows, from two tables?
    By B.W.B. in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-02-2016, 11:29 AM
  6. Hide rows between 2 pivot tables if they are empty
    By Richard Flame in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-30-2007, 02:07 PM

Tags for this Thread

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