+ Reply to Thread
Results 1 to 7 of 7

Suppress rows with zero

  1. #1
    Registered User
    Join Date
    07-11-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    48

    Exclamation Suppress rows with zero

    Hello,

    I need help with this macro to hide rows that have zero values. This macro worked for over 8 months. Now it is giving me error and I cannot figure out the issue. Please help!

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    06-22-2018
    Location
    Blackpool, England
    MS-Off Ver
    2019
    Posts
    408

    Re: Suppress rows with zero

    What's the error message? Could it be that it's trying to hide an already hidden row?

    Tim
    Never stop learning!
    <--- please consider *-ing !

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Suppress rows with zero

    Hi noorie,

    Click on some of those values that you think should be hidden in column X and see if they really are true zero. Many times you have the format set to zero but the real number is something like .001 which displays as zero but isn't.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    07-11-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Suppress rows with zero

    Hi, Thank you for replying.

    First I unhide all rows then I run the macro. in column X i have the formula to round and make values absolute.
    When the macro starts, it hides a couple of rows then the error is:

    Code execution has been interrupted.

    Options: Continue / End / Debug / Help

  5. #5
    Valued Forum Contributor
    Join Date
    06-22-2018
    Location
    Blackpool, England
    MS-Off Ver
    2019
    Posts
    408

    Re: Suppress rows with zero

    Tbh, I'd suggest posting a cut-down version of your file so we can see what's happening.

    Tim
    Last edited by harrisonland; 05-18-2020 at 03:49 PM.

  6. #6
    Registered User
    Join Date
    07-11-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Suppress rows with zero

    Hi,

    Macro seems to be working now. I kept on clicking continue for a few rows then the macro continued working. I'm thinking it is the data in those few rows i need to check.

  7. #7
    Valued Forum Contributor
    Join Date
    06-22-2018
    Location
    Blackpool, England
    MS-Off Ver
    2019
    Posts
    408

    Re: Suppress rows with zero

    Glad you got it working in the end.

    Don't forget to mark the thread [SOLVED] using the thread tools at the top of the page.

    You can also leave feedback for anyone who's helped by clicking the * to the left of the users' posts if you wish.

    Tim

+ 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. Macro Required to suppress rows with zero totals
    By Suzanne1307 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-25-2016, 03:52 PM
  2. How do you suppress rows with a zero total returned?
    By Suzanne1307 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-07-2015, 04:55 PM
  3. Suppress zero value rows?
    By Casino in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-19-2012, 10:24 AM
  4. [SOLVED] Suppress zero value rows
    By daveglynn in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-18-2012, 06:49 PM
  5. Suppress #DIV/0!
    By amsanborn in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-16-2010, 05:12 PM
  6. Suppress #DIV/0!
    By pgwolfe in forum Excel General
    Replies: 2
    Last Post: 06-24-2008, 12:51 PM
  7. how do I automatically hide or suppress zero balance rows
    By zhehol in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-13-2006, 10:45 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