+ Reply to Thread
Results 1 to 4 of 4

Delete Sheets Not Containing Text

  1. #1
    Registered User
    Join Date
    05-24-2018
    Location
    Australia
    MS-Off Ver
    2013 Windows
    Posts
    16

    Delete Sheets Not Containing Text

    Hi,

    I have this code. instead of deleting sheets which don't match text in A8:A12 I would like to delete sheets which don't contain text in A8:A12.

    Please Login or Register  to view this content.
    Regards,
    GC

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,421

    Re: Delete Sheets Not Containing Text

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    05-24-2018
    Location
    Australia
    MS-Off Ver
    2013 Windows
    Posts
    16

    Re: Delete Sheets Not Containing Text

    Hi,

    Thanks for the reply.

    I just tried this however it has deleted all sheets not just the ones containing this text.

    Regards,
    GC

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,421

    Re: Delete Sheets Not Containing Text

    Please Login or Register  to view this content.

+ 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] Delete all charts and empty rows from all sheets; won't change sheets
    By astrbac in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-29-2015, 10:12 AM
  2. Replies: 1
    Last Post: 10-04-2013, 04:21 AM
  3. Delete Rows by Cell Value - Delete sheets w/out prompt
    By Jimmydageek in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-25-2010, 02:03 PM
  4. Macro to delete sheets and saves remaining file does not properly delete module
    By pherrero in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-21-2005, 08:12 PM
  5. Replies: 0
    Last Post: 06-21-2005, 01:05 PM
  6. [SOLVED] Re: Macro to delete sheets and saves remaining file does not properly delete module
    By pherrero in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-21-2005, 01:05 PM
  7. Dialog Box to Select Sheets to Make Visible and Delete the Remaining Sheets
    By TEAM in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 05-23-2005, 04:59 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