+ Reply to Thread
Results 1 to 10 of 10

How to remove or delete blank cells

Hybrid View

  1. #1
    Registered User
    Join Date
    10-20-2020
    Location
    Bangalore
    MS-Off Ver
    Home & Student 2016
    Posts
    19

    How to remove or delete blank cells

    Hello Everyone!

    Please help me to remove or delete the blank row cells. I've attached sample workbook for your reference.


    Thank you
    Attached Files Attached Files
    Last edited by marc5123; 11-02-2020 at 10:46 AM.

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,034

    Re: How to remove or delete blank cells

    Try:
    Sub DeleteBlankRows()
        Columns("A").SpecialCells(xlCellTypeBlanks).EntireRow.Delete
    End Sub
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    10-20-2020
    Location
    Bangalore
    MS-Off Ver
    Home & Student 2016
    Posts
    19

    Re: How to remove or delete blank cells

    Hello Mumps1,

    I'm really new to this and not familiar with VB. Please upload the sample workbook with this code enabled or guide me, how to run this code.

    Thank you for your time to check into my thread.

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,034

    Re: How to remove or delete blank cells

    Do the following: Save the workbook as a macro-enabled file. This will change its extension to "xlsm". Hold down the ALT key and press the F11 key. This will open the Visual Basic Editor. In the menu at the top click 'Insert' and then click 'Module'. Copy and paste the macro into the empty code window that opens up. Press the F5 key to run the macro. Close the code module window to return to your sheet. There are other quicker ways to run the macro such as assigning it to a button that you would click on your sheet or assigning it to a short cut key. If you are still having problems, please let me know.

  5. #5
    Registered User
    Join Date
    10-20-2020
    Location
    Bangalore
    MS-Off Ver
    Home & Student 2016
    Posts
    19

    Re: How to remove or delete blank cells

    Thank you Mumps1

    Yes, its working.

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,034

    Re: How to remove or delete blank cells

    You are very welcome.

  7. #7
    Registered User
    Join Date
    10-20-2020
    Location
    Bangalore
    MS-Off Ver
    Home & Student 2016
    Posts
    19

    Re: How to remove or delete blank cells

    Good Morning Mumps!

    Please guide me through how to assign short cut key to run macro to remove blank or empty row?

  8. #8
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,034

    Re: How to remove or delete blank cells

    Click the "View" tab in the top menu.
    Click the top part of the "Macros" button on the far right.
    Click on the macro name in the list and then click the "Options" button on the right.
    Enter a letter of your choice in the box to the right of "Ctrl+"
    Enter a description (optional).
    Click "OK".
    Close the pop up window.
    When you want to run the macro, while holding down the CRTL key, press the letter you had entered in the box to the right of "Ctrl+"

  9. #9
    Registered User
    Join Date
    10-20-2020
    Location
    Bangalore
    MS-Off Ver
    Home & Student 2016
    Posts
    19

    Re: How to remove or delete blank cells

    Wow Mumps!

    Done, I owe you big time.

    Thank you so much!

  10. #10
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,034

    Re: How to remove or delete blank cells

    My pleasure.

+ 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] Concatenate, Delete Blank Rows & Remove Repeated Header
    By Barieq in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 05-19-2020, 02:04 PM
  2. Replies: 12
    Last Post: 05-29-2018, 05:11 PM
  3. Delete Unnecessary Data and Remove Blank Rows
    By kingsdime29x in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-10-2017, 02:26 AM
  4. Replies: 9
    Last Post: 11-23-2016, 12:22 PM
  5. Replies: 5
    Last Post: 08-26-2013, 06:26 PM
  6. how to remove the blank column (delete rows)
    By SelinaT in forum Excel General
    Replies: 1
    Last Post: 04-18-2011, 03:50 AM
  7. How do I delete or remove additional blank pages of a worksheet?
    By Kim in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-27-2005, 04:05 PM

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