+ Reply to Thread
Results 1 to 6 of 6

is there a macro to delete empty rows?

  1. #1
    Registered User
    Join Date
    09-06-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    22

    is there a macro to delete empty rows?

    Hi guys i know this is probably a simple thing but i don't seem to be able to find a solution anywhere, that is unless i look at third party software.

    what i am trying to do is delete all empty rows but leave individual cells in a populated row that are the result of the following group of macros

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    i have uploaded an example of the file output.

    Hopefully this will make sense.
    Attached Files Attached Files
    Last edited by Poseidons-Palace; 10-23-2012 at 03:20 AM. Reason: Separated codes

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: is there a macro to delete empty rows?

    try this:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-06-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    22
    I am unable to get this macro working, keep getting an error. Am i supposed to select sheet, column etc???

    I am getting the following error all the time, as far as i can tell the macro has been input correctly....

    Cells.JPG

    If anyone can let me know where the problem is arising i would be very grateful.

    I am thinking that even though the cells are blank in some way the macro sees them as being populated, does that make any sense at all???
    Last edited by Poseidons-Palace; 10-22-2012 at 03:40 PM. Reason: added additional information

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: is there a macro to delete empty rows?

    As an option

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-06-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: is there a macro to delete empty rows?

    Exactly what i needed...

    Thank you so much

  6. #6
    Registered User
    Join Date
    09-06-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: is there a macro to delete empty rows?

    would it be possible to set the code to run based on a cell change in a different sheet?

    The reason i ask is because i am wanting the macro to run based on the result of a drop down on another sheet, i have tried inserting a cell (H1) that changes (see below) as the sheet changes but i am still having to go in manually and run the script afterwards.


    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Again any help would be much appreciated

    Jez

+ 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