+ Reply to Thread
Results 1 to 3 of 3

Delete rows if column contains a blank code included

  1. #1
    Registered User
    Join Date
    10-11-2010
    Location
    england
    MS-Off Ver
    Excel 2003
    Posts
    5

    Delete rows if column contains a blank code included

    Hello I need help filling out this macro that i've pulled from another thread.
    And here is the code

    Please Login or Register  to view this content.
    My row is BE3:BE14204 That way if there is a blank within that range (column range) it deletes the entire row. I keep getting a syntax error, what is going wrong?

    The debugger highlights the first part "Sub delete_rows_blank()"
    Last edited by v3x0rg; 10-11-2010 at 10:04 AM. Reason: changedm macro

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Delete rows if column contains a blank code included

    Hello & welcome to the board,

    If you are just trying to delete an entire row if column BE is blank then this will work.

    Please Login or Register  to view this content.

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Delete rows if column contains a blank code included

    Try this

    1/. Filter your Data on Column BE for Blanks
    2/. Select all of the resultant rows, and Delete them (Delete > Rows)
    3/. Remove the filter.

    Hope this helps
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ 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