+ Reply to Thread
Results 1 to 4 of 4

VBA Loop through all worksheets and "unlist" tables (to retain formatting)

  1. #1
    Registered User
    Join Date
    07-30-2007
    Location
    United Kingdom
    Posts
    8

    VBA Loop through all worksheets and "unlist" tables (to retain formatting)

    I'm trying to piece together a sub to loop through all active worksheets and remove all tables but keep the formatting.

    So far I have this code below but it only does the required action for the sheet that is active. I'm sure I'm missing something obvious, can anyone please assist? Thanks.


    Please Login or Register  to view this content.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: VBA Loop through all worksheets and "unlist" tables (to retain formatting)

    Try:

    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    07-30-2007
    Location
    United Kingdom
    Posts
    8

    Re: VBA Loop through all worksheets and "unlist" tables (to retain formatting)

    Thanks very much, that worked perfectly.

    Pesky "activesheet" slowing things down for me

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: VBA Loop through all worksheets and "unlist" tables (to retain formatting)

    You're welcome. Thanks for the rep.

    Pesky "activesheet
    ... not going anywhere



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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] Copy cells from range "C3" to "F3" with loop and blank field
    By masterm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-16-2015, 01:03 PM
  2. Lookup Number on "Summary" Sheet and Loop Through All Worksheets
    By Branbran10 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 05-05-2015, 04:28 PM
  3. Loop Not Reseting "x" Value, Saving Worksheets to PDF files
    By gjohn282 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-14-2014, 10:02 PM
  4. Replies: 1
    Last Post: 06-06-2013, 06:28 PM
  5. question about for" do.....loop "for multiple worksheets task
    By anaking in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-16-2010, 11:31 AM
  6. use variable in Workbooks("book1").Worksheets("sheet1").Range("a1"
    By Luc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-28-2005, 04:05 PM
  7. [SOLVED] Retain PivotTable formatting after "Refresh Data"
    By Joel 48371 in forum Excel General
    Replies: 1
    Last Post: 04-01-2005, 05:06 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