+ Reply to Thread
Results 1 to 3 of 3

Delete all sheets in workbook with Value X in Cell X

  1. #1
    Registered User
    Join Date
    05-08-2010
    Location
    Classified
    MS-Off Ver
    Excel 2003
    Posts
    7

    Delete all sheets in workbook with Value X in Cell X

    Hi there everyone.

    Title is pretty self-explanatory. For example, I have a workbook with a hundred sheets in the same format. I would like a script to delete all the sheets with "Short Term" in cell A4.

    Any help with this would be greatly appreciated. Attached is a dummy workbook for your reference.

    :-)
    Attached Files Attached Files
    Last edited by sweeter; 08-01-2010 at 09:52 AM.

  2. #2
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: Delete all sheets in workbook with Value X in Cell X

    Try tgis our

    Please Login or Register  to view this content.
    How to use:
    1. Copy above code.
    2. In Excel press Alt + F11 to enter the VBE.
    3. Choose Insert -> Module.
    4. Paste code into the right pane.
    5. Press Alt + Q to close the VBE.
    6. Save workbook before any other changes.
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  3. #3
    Registered User
    Join Date
    05-08-2010
    Location
    Classified
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Delete all sheets in workbook with Value X in Cell X

    Thank you so much. It works perfectly. You are incredible. :-)

+ 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