+ Reply to Thread
Results 1 to 3 of 3

VBA code to delete rows that are blank

  1. #1
    Registered User
    Join Date
    05-25-2016
    Location
    Erlanger, KY
    MS-Off Ver
    2010
    Posts
    81

    VBA code to delete rows that are blank

    I have a worksheet that has two pivot tables on them. There is a lot of other code in the workbook. I need to add additional code to, upon refresh of the two pivot tables, delete all but two of the blank rows between them. The code that I added to do this, is only deleting one row..... if I keep hitting run it removes them one at a time.

    Sub DeleteBlankRows2()

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    05-25-2016
    Location
    Erlanger, KY
    MS-Off Ver
    2010
    Posts
    81

    Re: VBA code to delete rows that are blank

    I have found code that will delete all of the lines at once, but I need to be able to keep two lines between the two pivot tables. The code that I used to delete all this lines is:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-25-2016
    Location
    Erlanger, KY
    MS-Off Ver
    2010
    Posts
    81

    Re: VBA code to delete rows that are blank

    I have found code that will delete all of the lines at once, but I need to be able to keep two lines between the two pivot tables. The code that I used to delete all this lines is:

    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] VB Code to copy and delete blank rows
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-04-2016, 12:28 AM
  2. Using code to delete rows with blank cells in them upon opening the workbook
    By marielouise1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-12-2014, 02:00 PM
  3. Changing code from deleting rows to cut/paste rows into another sheet and delete blank row
    By kmarshall6576 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-18-2013, 01:54 AM
  4. Code to delete all blank rows and add totals
    By fusion007 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-24-2011, 04:00 PM
  5. Delete rows if column contains a blank code included
    By v3x0rg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-11-2010, 10:01 AM
  6. Code to delete partial rows based on blank cells
    By scaffdog845 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-08-2010, 04:15 AM
  7. Replies: 1
    Last Post: 06-20-2009, 03:43 PM

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