+ Reply to Thread
Results 1 to 4 of 4

Do while loop to delete worksheets if worksheets are not in the specified list

  1. #1
    Registered User
    Join Date
    07-22-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    85

    Do while loop to delete worksheets if worksheets are not in the specified list

    Hi,

    I have a list of worksheets on sheet1, i want to perform a do while loop to delete the sheets that are not equals to the sheets in the list so far i have this formula. Can someone help me see where I went wrong

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    05-28-2009
    Location
    Springfield, Missouri, USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Do while loop to delete worksheets if worksheets are not in the specified list

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-22-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    85

    Re: Do while loop to delete worksheets if worksheets are not in the specified list

    can there be a solution that works if the worksheet names on column B are like made up of alphabets.

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Do while loop to delete worksheets if worksheets are not in the specified list

    Hi kchm_2000
    Try this code
    Please Login or Register  to view this content.
    Let me know of issues.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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