+ Reply to Thread
Results 1 to 3 of 3

How to delete empty row at once in a worksheet?

  1. #1
    Forum Contributor
    Join Date
    09-14-2011
    Location
    Nepal
    MS-Off Ver
    Excel 2007
    Posts
    115

    How to delete empty row at once in a worksheet?

    Dear All,

    I have a data containing house loss in four different columns K, L, M & N. If the above said four columns is empty than I want to delete entire row at once. How can I do that? Please help. Sample files also attached herewith.

    Indra.
    Attached Files Attached Files
    Last edited by Indra Rai; 09-27-2014 at 12:20 AM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,929

    Re: How to delete empty row at once in a worksheet?

    Here is a VBA solution:


    Please Login or Register  to view this content.
    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    To run the Excel VBA code:
    1. Press Alt-F8 to open the macro list
    2. Select a macro in the list
    3. Click the Run button
    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 Contributor
    Join Date
    09-14-2011
    Location
    Nepal
    MS-Off Ver
    Excel 2007
    Posts
    115

    Re: How to delete empty row at once in a worksheet?

    Dear alansidman, Thank you very much for your help. You are genus. It works.

    Indra

+ 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. Replies: 1
    Last Post: 05-26-2014, 01:31 PM
  2. Delete Empty Rows and empty columns from the word table
    By mvneema in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-25-2014, 10:51 AM
  3. How to select a worksheet and delete the rows that are 0 or empty on column 3(C)
    By lee478 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-26-2013, 10:44 PM
  4. [SOLVED] still have empty cell after run Delete empty cells code
    By tuongtu3 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-25-2012, 04:28 PM
  5. [SOLVED] How do I delete an empty worksheet.
    By Jimmy in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-03-2005, 02:06 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