+ Reply to Thread
Results 1 to 4 of 4

Is there a VBA Macro Function to Force Delete A Row Based on a Blank Cell to The Right?

  1. #1
    Registered User
    Join Date
    12-11-2019
    Location
    Los Angeles, California
    MS-Off Ver
    Office 2019
    Posts
    6

    Is there a VBA Macro Function to Force Delete A Row Based on a Blank Cell to The Right?

    Right now I am using

    Please Login or Register  to view this content.
    The problem is that one of my macros makes 2 tables all the way down to Row 1000, and whenever I run the macro, it leaves the rows that I no longer need.

    What would be the solution to force delete a row based on 'A' being blank no matter what tables or data is to the right of it
    Last edited by alansidman; 05-04-2020 at 06:44 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2506 Win 11
    Posts
    24,785

    Re: Is there a VBA Macro Function to Force Delete A Row Based on a Blank Cell to The Right

    Code Tags Added
    Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,964

    Re: Is there a VBA Macro Function to Force Delete A Row Based on a Blank Cell to The Right

    When you say tables...Do you mean ListObjects...If so, you will not be able to delete an entire row...Each row within each Table will need to be deleted...
    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

  4. #4
    Registered User
    Join Date
    12-11-2019
    Location
    Los Angeles, California
    MS-Off Ver
    Office 2019
    Posts
    6

    Re: Is there a VBA Macro Function to Force Delete A Row Based on a Blank Cell to The Right

    Quote Originally Posted by sintek View Post
    When you say tables...Do you mean ListObjects...If so, you will not be able to delete an entire row...Each row within each Table will need to be deleted...
    Thank you - Yea I was doing it wrong

+ 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] Delete row based on non-blank cell
    By megmer in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-17-2019, 02:00 PM
  2. [SOLVED] delete column based on a certain cell value and blank cell
    By k1dr0ck in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-19-2017, 07:38 AM
  3. [SOLVED] Best way to delete multiple rows based on blank cell value
    By davidktilley in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-17-2015, 03:23 PM
  4. [SOLVED] Macro Delete Contents in 23rd corresponding cell if the cell in range is a non-blank cell
    By murtaza.khan in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-04-2014, 01:11 AM
  5. help with my project to delete blank based on cell value
    By Pilot5000 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-23-2014, 02:57 PM
  6. force blank cell if no date?
    By KentuckyGenealogist in forum Excel General
    Replies: 3
    Last Post: 06-17-2011, 06:52 PM
  7. Force a blank cell to zero
    By Roz in forum Excel General
    Replies: 3
    Last Post: 12-22-2005, 09:26 AM

Tags for this Thread

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