+ Reply to Thread
Results 1 to 2 of 2

Create Macro if any cell under "QUANTITY" Column = 0, then Hide, Multiple Worksheets

  1. #1
    Registered User
    Join Date
    12-20-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    5

    Exclamation Create Macro if any cell under "QUANTITY" Column = 0, then Hide, Multiple Worksheets

    First off, this document will be saved as an Excel template once all my corrections are made.

    I need a macro that runs with this template so that whenever a cell under the column named "Quantity" is left with a 0, that row is hidden. This would need to happen for worksheets STEEL V-Crimp Processed, Fittings, and Misc (It wouldn't matter on the others since there is no quantity column.)

    The idea is that once the person creating a bid for a client has entered in everything necessary, he can run the macro to remove any rows that still have a 0 under the quantity column for a cleaner look!

    The macro will also need to be "undone" if a change needs to be made after the macro is run the first time.
    Attached Files Attached Files

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

    Re: Create Macro if any cell under "QUANTITY" Column = 0, then Hide, Multiple Worksheets

    The first macro will hide the rows in the appropriate sheets. The second macro will make all the rows visible again. It would have been much easier to code if the sheets used the same basic format, that is, if the Quantity was always in the same column and started in the same row. As it is, it should work but the code could have been shorter. Please let me know how it works out.
    Please Login or Register  to view this content.
    Last edited by Mumps1; 06-19-2013 at 04:17 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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