+ Reply to Thread
Results 1 to 1 of 1

Macro to delete rows and columns

  1. #1
    Registered User
    Join Date
    11-12-2013
    Location
    Geneva
    MS-Off Ver
    Excel 2007
    Posts
    59

    Macro to delete rows and columns

    Hi there,

    I working in a macro that it is driving me crazy and do not know what else to do to make it work.

    Basically I want to delete rows and columns that do not contain relevant data. These are easily spottable because they have 0s in them.

    These are the steps that I am following to create the macro:
    'Indentifying range of rows to be deleted
    1.look up (Ctrl+f) for value 0 by columns. [working well]
    2.Ctrl+G to go to cell A751, as this file it's been grouped by every 750 rows.
    3.Select entire range and (B16:A751) and delete entire row range.

    The problem comes in the next step when A751 is not any more a valid parameter as rows have been shifted up.

    When it comes to columns, I would like to keep only M and N, R and S, W and X, AB and AC, AG and AH, etc. Basically, you find them every three colums. The only expeption to this is column D to L that I would also like to delete.

    Maybe there is an easier solution?? Could you give me a hand with this?

    Thanks!!!
    Attached Files Attached Files

+ 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 all rows but 1 in specific columns
    By matt3m in forum Excel General
    Replies: 1
    Last Post: 04-22-2012, 11:00 PM
  3. Macro To Delete Duplicate Records (Rows), While Omiting Specific Columns
    By Orangeworker in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-09-2010, 12:37 PM
  4. Delete Specific Rows/Columns
    By lazenca in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-01-2008, 01:02 AM
  5. Replies: 5
    Last Post: 08-16-2006, 02: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