+ Reply to Thread
Results 1 to 6 of 6

VBA Code to Delete All Blank Rows in Table

  1. #1
    Forum Contributor
    Join Date
    03-12-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    421

    VBA Code to Delete All Blank Rows in Table

    Hi,

    Can someone derive a macro to delete the blank rows in the Parts table (O:R) on the AFRsInput sheet while the sheet is under protection?

    Thanks,
    FF

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: VBA Code to Delete All Blank Rows in Table

    You can't. You will have to Unprotect, Do your stuff, Protect.

    Edit:
    When putting this in thisworkbook you don't need to Unprotect, Protect.
    Please Login or Register  to view this content.
    Last edited by bakerman2; 03-26-2019 at 10:43 AM.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Forum Contributor
    Join Date
    03-12-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    421

    Re: VBA Code to Delete All Blank Rows in Table

    Thanks I have the code to add rows can this be adjusted to delete:

    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: VBA Code to Delete All Blank Rows in Table

    Try this code
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  5. #5
    Forum Contributor
    Join Date
    03-12-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    421

    Re: VBA Code to Delete All Blank Rows in Table

    Perfect YasserKhalil thanks so much!

  6. #6
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: VBA Code to Delete All Blank Rows in Table

    You're welcome. Glad I can offer some help
    Regards

+ 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] Need help please with code to delete rows where a specified cell is blank
    By Grassman in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-12-2018, 10:03 AM
  2. [SOLVED] VB Code to delete blank rows
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-11-2017, 03:26 PM
  3. [SOLVED] VBA code to delete rows that are blank
    By cinstanl in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-08-2016, 02:35 PM
  4. [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
  5. 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
  6. 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
  7. 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

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