+ Reply to Thread
Results 1 to 3 of 3

Delete column based on string value

  1. #1
    Forum Contributor
    Join Date
    09-30-2015
    Location
    LA my baby
    MS-Off Ver
    2013
    Posts
    727

    Delete column based on string value

    Hello. I wrote this code to delete a column if there is a particular value. Can I write it more efficiently? Also, I would like it to look in the entire column rather than in a specific row, because I'm not sure if the value will always be in that row. Thanks.


    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Delete column based on string value

    Maybe:

    Please Login or Register  to view this content.

  3. #3
    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,456

    Re: Delete column based on string value

    Or:

    Please Login or Register  to view this content.

    Regards, TMS
    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


+ 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 entire row if column contains anything (string,int.,etc)
    By nhi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-20-2013, 01:31 PM
  2. Macro to delete certain columns and delete rows based on time in another column
    By beepbeep27 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-12-2012, 11:47 AM
  3. Delete columns based on text string
    By Barking_Mad in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-21-2010, 09:21 AM
  4. Delete rows based upon partial string
    By Knawl in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-06-2009, 11:37 PM
  5. Delete row if column contains string
    By simpele in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-22-2007, 04:47 AM
  6. [SOLVED] Column Delete based on String
    By scott in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 02-22-2005, 03:06 PM
  7. Delete Column Containing String
    By scott in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-19-2005, 08:06 PM

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