+ Reply to Thread
Results 1 to 2 of 2

Delete columns in tabs which meet a certain criteria

  1. #1
    Registered User
    Join Date
    03-10-2021
    Location
    Manchester
    MS-Off Ver
    Microsoft 365
    Posts
    5

    Post Delete columns in tabs which meet a certain criteria

    Hi all,

    Can someone help with the below problem please.

    I have a workbook with lots of tabs and I want to delete certain columns from each tab (after the data has been added).

    I don't want to delete from all the tabs - only from the ones where row 1 has the word 'Delete' in a cell.

    i.e. if A1 has 'Delete' then delete then column A in tab 1 but if cell C1 has the word 'Delete' in tab 2 then delete column C in tab 2 etc.

    Hope than makes sense.

    Thanks

  2. #2
    Valued Forum Contributor
    Join Date
    06-29-2014
    Location
    Australia
    MS-Off Ver
    MSO 365
    Posts
    1,098

    Re: Delete columns in tabs which meet a certain criteria

    Hello Ummy,

    Try the following code:-

    Please Login or Register  to view this content.
    It does assume that the word "Delete" is to be found only in Row1 of any worksheet.

    I hope that this helps.

    Cheerio,
    vcoolio.

+ 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. How to delete columns that meet one criteria AND does NOT meet the other?
    By lch93lily in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 08-06-2014, 09:53 AM
  2. How to delete all rows with the same name as a row that meet a certain criteria.
    By shaihulud in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-19-2010, 04:50 PM
  3. Delete data in cells that don't meet criteria
    By SITCFanTN in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-10-2006, 04:10 PM
  4. [SOLVED] Delete rows that do not meet specific criteria
    By SITCFanTN in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-06-2006, 11:36 AM
  5. Macro, delete rows that meet criteria
    By Scott Wagner in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-22-2005, 08:10 PM
  6. Delete Rows where cells does not meet criteria
    By Danny in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-12-2005, 01:05 PM
  7. how do i delete rows when cells meet certain criteria?
    By Tbal in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-15-2005, 01:05 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