+ Reply to Thread
Results 1 to 5 of 5

Deleting empty rows in excel using macro

  1. #1
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    640

    Deleting empty rows in excel using macro

    hi, this is nur again. I am trying to delete empty rows by using below macro code:
    Please Login or Register  to view this content.
    i am getting "run time error '1004': No Cells were found"

    Please note that: The code above is working fine for my another macro enable workbook.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Deleting empty rows in excel using macro

    The cells in your sheet may "look" empty, but something IN or "on" those cells is making them evaluate to "not-blank".

    Two solutions...

    1) You know there are no blanks and just want the error message suppressed:
    Please Login or Register  to view this content.

    2) You want to find a way to delete these row on cells that "look" blank but aren't really... post a sample workbook of this troublesome data and let us take a look.

    Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    640

    Re: Deleting empty rows in excel using macro

    Hi, JBeaucaire , thanks for reply, i have implemented your code , but still problem , please check the attached file.
    Attached Files Attached Files

  4. #4
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Deleting empty rows in excel using macro

    maybe so
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    640

    Re: Deleting empty rows in excel using macro

    hi,nilem ,you are right , thanks for your valuable time..

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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