+ Reply to Thread
Results 1 to 2 of 2

Delete Every Other Consecutive X Columns

  1. #1
    Registered User
    Join Date
    01-27-2013
    Location
    New Zealand
    MS-Off Ver
    Excel 2007
    Posts
    9

    Delete Every Other Consecutive X Columns

    As title.

    What is the fastest way to delete 2 consecutive columns after skipping 2 columns?
    For eg: Column A Column B Column C Column D Column E Column F Column G Column H
    I would like to keep column A & B, delete Column C & D, keep Column E & F and then delete Column G & H

    I have a large dataset 4679 columns all together .... that is my code below it does what i want but i found it take a bit of time
    For i = 4677 To 1 Step -3
    Columns(i).Delete
    Next i

    For j = 3 To 4678 Step 1
    Columns(j).Delete
    Next j

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Delete Every Other Consecutive X Columns

    Please Login or Register  to view this content.
    If solved remember to mark Thread as solved

+ 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