+ Reply to Thread
Results 1 to 11 of 11

Delete Blank Rows Code If No Parts

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

    Delete Blank Rows Code If No Parts

    Hello,

    On my AFRsInput sheet there is a red shape to delete blank rows from Table1 (O:Q). If there aren't any parts and it is selected it goes to debug. Can the code be modified to exit code if there aren't any parts?

    Thank you

    Please Login or Register  to view this content.

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

    Re: Delete Blank Rows Code If No Parts

    Here is the attached workbook.

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

    Re: Delete Blank Rows Code If No Parts

    Before this line
    Please Login or Register  to view this content.
    add this line
    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

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

    Re: Delete Blank Rows Code If No Parts

    Brilliant! Thanks again for your valuable help.

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

    Re: Delete Blank Rows Code If No Parts

    Is there a fail safe for the Add More Rows in there aren't any parts yet? What I would like is to add as many rows to enter parts as needed then type them in.

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

    Re: Delete Blank Rows Code If No Parts

    You're welcome.
    I can't get what you mean in post #5

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

    Re: Delete Blank Rows Code If No Parts

    There is a code for 'Add More Rows' (green shape on the AFRsInput sheet).

    If pressed and there aren't any parts it puts the word 'new' in column O. Not sure why that is there. I want to press it multiple times for as many parts as I need then type the parts in.

    Is it possible to modify that code?

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

    Re: Delete Blank Rows Code If No Parts

    The code:

    Please Login or Register  to view this content.

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

    Re: Delete Blank Rows Code If No Parts

    Before this line
    Please Login or Register  to view this content.
    add this line
    Please Login or Register  to view this content.

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

    Re: Delete Blank Rows Code If No Parts

    Wow you are amazing at this! I really appreciate the help

    Have a wonderful day ahead!

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

    Re: Delete Blank Rows Code If No Parts

    You're welcome. Glad I can offer little help

+ 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] VBA Code to Delete All Blank Rows in Table
    By fredfarmer in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-26-2019, 10:58 AM
  2. [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
  3. [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
  4. [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
  5. [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
  6. 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
  7. 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

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