+ Reply to Thread
Results 1 to 2 of 2

Hide/Unhide a Selection of Rows

  1. #1
    Registered User
    Join Date
    07-15-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    1

    Lightbulb Hide/Unhide a Selection of Rows

    So I have an excel pricing sheet setup and I have a "add product" button that I want to push that adds several rows and then when I push it again it doesnt work.


    I have a counter setup this is my code

    Please Login or Register  to view this content.
    Basically I want to
    unhide 78:88
    unhide 115 to 118

    Then push it again and unhide

    unhide 119:129
    unhide 156:159

    push again unhide
    160:170
    197-200


    These numbers are all separated by 41.

    I need a delete product button that is connected and deletes all rows that are just added
    hide 78:118
    hide 119:159
    hide 160:200

    So I should be able to push add product and then unhide rows..and push delete product and hide series of rows just added, if I add two products the delete product should delete the one that was just added so I am hoping the variable ProdNum can be manipulated by both macros to compliment each other and stay current

    Thanks for your help guys
    Last edited by JBeaucaire; 07-21-2013 at 12:38 PM. Reason: Added CODE tags, as per Forum Rules. Take a moment to read the Forum Rules in the menu bar above. Thanks.

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Hide/Unhide a Selection of Rows

    Try this

    Please Login or Register  to view this content.
    Elegant Simplicity............. Not Always

+ 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. [SOLVED] Using Tick Boxes to Hide/ Unhide a selection of rows
    By Andrew E Smith in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-05-2013, 12:36 PM
  2. [SOLVED] How to hide & unhide rows based on selection from drop down box?
    By jgomez in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-02-2013, 08:30 PM
  3. Replies: 1
    Last Post: 02-01-2013, 03:06 PM
  4. Auto Hide & Unhide Rows Upon Sheet Selection
    By Sleeper in forum Excel General
    Replies: 4
    Last Post: 01-24-2013, 02:00 PM
  5. [SOLVED] How VB code can unhide/hide rows based on combobox selection?
    By jgomez in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-04-2012, 01:25 PM

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