+ Reply to Thread
Results 1 to 2 of 2

Using VBA to hide rows with zero values

  1. #1
    Registered User
    Join Date
    07-17-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    1

    Using VBA to hide rows with zero values

    Hi,

    I've developed a spreadsheet in Excel 2010 which will be used to generate compensation based statements for about 200 employees. The issue i have is that there will be many rows with zero values that i would need to hide and actioning manually is simply not an option as i need to refresh these fairly often. I've looked at some VBA code on this forum which is helpful however i can't get anything to work for me.

    I currently type in the ID number of the employee which populates various comp information using VLOOKUPS and the needed VBA/Macro would idetify rows with zero values in columns E,F,H and I and hide them (not delete).

    I've enclosed a test version for your viewing, any help much appreciated.

    Andy
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    01-01-2005
    MS-Off Ver
    2007
    Posts
    368

    Re: Using VBA to hide rows with zero values

    How does your worksheet works:

    1) In columns E you will have always "USD" or you are goint to have values?
    2) In columns H you will have always "GBP" or you are goint to have values?
    3) If you have a value in column F you will always have a value in column I, correct?

    if all the answres to my questions are yes then try to copy this code to a module and run it

    Please Login or Register  to view this content.
    Last edited by efernandes67; 07-20-2012 at 07:23 PM.

+ 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