+ Reply to Thread
Results 1 to 5 of 5

Hiding lines automatically n excell

  1. #1
    Registered User
    Join Date
    12-13-2012
    Location
    sheffield england
    MS-Off Ver
    Excel 2003
    Posts
    3

    Hiding lines automatically n excell

    Hi

    I have large spreadsheets showing product lines and stock counts
    If stock count is greater than 1 on any line I would like the spreadsheet to hise that row.

    Thus only rows that had 1 or less as a stock value would show.

    Can I set a template to do this automatiically if I copy in data from another sheet (ensuring that the stock value is ALWAYS in column G) please?

    eg in the list below Iwould like lines 3,4 and 6 to not show in my spreadsheet
    Supplier Our Article Code Article Description Retail Price In Stock

    Burton McCall 24468P Fidji USelect PM Black 20CM 45 1
    Burton McCall 24475P Fidji USelect SM Black 20CM 45 1
    Burton McCall 24451P Fidji USelect SM Cherry 20CM 45 2
    Burton McCall 24437P Fidji USelect SM Natural 20CM 45 2
    Burton McCall 900812P Nancy PM Acrylic 12CM 28 0
    Burton McCall 900818P Nancy PM Acrylic 18CM 30 2

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Hiding lines automatically n excell

    Hi livsstil,

    Try this:

    Please Login or Register  to view this content.
    and to get out of it:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    12-13-2012
    Location
    sheffield england
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Hiding lines automatically n excell

    Thanks xladept.

    Where do enter this code though please? In a cell then copy down does not work, sorry to be thick, I appreciate your help

  4. #4
    Registered User
    Join Date
    12-13-2012
    Location
    sheffield england
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Hiding lines automatically n excell

    hi xladept i just saw you are in california, well its 2 degrees and filthy rain here as we approach Christmas, aargghhhhh

  5. #5
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Hiding lines automatically n excell

    Yes, but that's degrees centigrade - we've got 42 degrees fahrenheit - just a little warmer and we actually had rain the other day!

    To use the code:


    Copy the code to the clipboard
    Press ALT + F11 to open the Visual Basic Editor.
    Select Module from the Insert menu
    Type "Option Explicit" then paste the code into the white space on the right.

    With the cursor between Sub and End Sub press F5 OR

    Press ALT + Q to close the code window.
    Press ALT + F8 then double click on the macroname (GHide)
    Last edited by xladept; 12-14-2012 at 02:47 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