+ Reply to Thread
Results 1 to 4 of 4

VBA to remove blank rows

  1. #1
    Forum Contributor
    Join Date
    05-01-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    822

    VBA to remove blank rows

    Hi ,

    I'm trying to remove all blank rows within my sheet and have the following code but it says it can't be done when overlapping different sections?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: VBA to remove blank rows

    xlCellTypeBlanks works with a single column

    Please Login or Register  to view this content.

  3. #3
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: VBA to remove blank rows

    Since you have specified .EntireRow.delete it is not necessary to qualify a range with multiple columns. Thats why AB33 changed it to reflect only column A.
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

  4. #4
    Forum Contributor
    Join Date
    05-01-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    822

    Re: VBA to remove blank rows

    Ah, thats where i went wrong.

    Many thanks to both!

+ 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. Remove blank rows
    By chiragvaya in forum Excel General
    Replies: 6
    Last Post: 12-29-2012, 05:11 AM
  2. Remove blank rows from list box
    By delolding in forum Excel General
    Replies: 6
    Last Post: 08-30-2012, 12:19 PM
  3. Remove blank rows
    By JohnsonBeGood in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 03-10-2011, 01:10 PM
  4. How to remove blank rows, then insert blank row conditionally, PLUS error proof
    By GTS115 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-05-2009, 11:39 AM
  5. remove blank rows
    By vernalGreens@gmail.com in forum Excel General
    Replies: 3
    Last Post: 02-20-2006, 11:45 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