+ Reply to Thread
Results 1 to 4 of 4

Macro to Delete Rows in Columns Based on Length of Column "A"

  1. #1
    Registered User
    Join Date
    06-06-2013
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    38

    Macro to Delete Rows in Columns Based on Length of Column "A"

    I currently have a macro that autofills the columns down based upon the length of column "A"
    In the attached file that is in tab, "A>B"

    But in some cases column "A" will be shorter than the other columns.
    I then need the macro to delete the excess rows in column "B" through "C" in this example
    This is shown in tab, "A<B"

    I would then change this into an if statement so that no matter the circumstance, the macro could execute correctly.
    But what I'm missing is a way to delete rows based upon the length of column "A"

    I really appreciate any help!

    Thanks in advance!!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,604

    Re: Macro to Delete Rows in Columns Based on Length of Column "A"

    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    06-06-2013
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Macro to Delete Rows in Columns Based on Length of Column "A"

    In the actual file, the columns relying on column "A", are column C through column GR.
    It's going to be really tedious to enter in a line for every column. And actually it won't let me enter that many repeating lines.
    Is there a way to condense that part of the code?

    Otherwise it's really great!

    Thank you!!
    Last edited by rmmohan; 10-17-2013 at 09:13 AM.

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,604

    Re: Macro to Delete Rows in Columns Based on Length of Column "A"

    Please Login or Register  to view this content.

+ 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] Is it possible to a macro go row by row and hide (or delete) and rows where column 1 is ""
    By CDNcameron in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-20-2013, 02:14 PM
  2. Delete rows containing "0" across an unspecified number of Columns
    By QloQ1183 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 05-28-2013, 02:48 PM
  3. Macro to copy and paste rows based on "text" found in Column A
    By balston2 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-09-2013, 12:35 PM
  4. Delete rows in the result of formulas "OK" n column "J"
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-29-2012, 10:08 AM
  5. Excel 2007 : Delete rows containing "NA" in column "A"
    By grsnipe in forum Excel General
    Replies: 4
    Last Post: 08-16-2011, 06:57 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