+ Reply to Thread
Results 1 to 3 of 3

Delete all columns expect specific ones

  1. #1
    Registered User
    Join Date
    05-30-2013
    Location
    Ohio
    MS-Off Ver
    Excel 2003
    Posts
    28

    Delete all columns expect specific ones

    Is there a macro to delete all columns expect for specific ones. The macro would search row 6 and delete all columns expect for the specified ones based on their text names in row 6. For example it would not delete the columns named pay, date, gross, in row 6 and delete all other columns

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Delete all columns expect specific ones

    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor fredlo2010's Avatar
    Join Date
    07-04-2012
    Location
    Miami, United States
    MS-Off Ver
    Excel 365
    Posts
    762

    Re: Delete all columns expect specific ones

    Hi try this code in a sample workbook

    Please Login or Register  to view this content.
    Thanks

+ 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. Delete 1 to 8 rows. Do text to columns to specific columns.
    By niceblue in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-06-2013, 10:53 AM
  2. [SOLVED] Delete specific columns and sheet
    By fatalcore in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-20-2013, 12:57 PM
  3. [SOLVED] Global Macro to delete row based on specific cell content expect for row 1
    By intercooler in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-10-2012, 07:13 PM
  4. Delete a specific row by matching 2 columns.
    By Debz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-01-2012, 01:10 PM
  5. VB Code to delete specific Columns of a specific worksheet
    By akh in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-22-2010, 09:14 AM

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