+ Reply to Thread
Results 1 to 3 of 3

Listbox macro to hide/unhide rows in different sheet

  1. #1
    Forum Contributor
    Join Date
    05-23-2014
    Location
    Fredericia, Denmark
    MS-Off Ver
    Windows Office 2013, Excel 10
    Posts
    139

    Listbox macro to hide/unhide rows in different sheet

    VBA neophyte talking here..... in the attached abbreviated example, what should the second line in each of the three macros read to direct the hiding/unhiding of rows in the adjacent sheet? Right now I'm trying a If/Then configuration but it's not working. With clabhart's help I was able to figure this out using grouped check boxes but a list box should be graphically "cleaner" and hopefully simpler in coding. The original table list is hidden in column "A", if that is important. I could use a combo box but the menu list is short and I think the list box approach will be simpler.... If there is a way to combine the three macros into one, that also would be helpful.

    Thanks for your help, I need it! David
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    06-12-2014
    Posts
    42

    Re: Listbox macro to hide/unhide rows in different sheet

    Not a bad attempt for a "neophyte".

    Try this:
    Please Login or Register  to view this content.
    Make sure to place this code under the Sheet1.
    You can do this by right-clicking on the Sheet1 tab and selecting "View Code".
    Let me know if you have any questions.

  3. #3
    Forum Contributor
    Join Date
    05-23-2014
    Location
    Fredericia, Denmark
    MS-Off Ver
    Windows Office 2013, Excel 10
    Posts
    139

    Re: Listbox macro to hide/unhide rows in different sheet

    This works, however, I cannot see the macro listed. In fact, there are no macros listed, which concerns me as I would like to be able to name these. I will need to perform this same operation about 40-50 times in Sheet 1 (which I will need to title "Scorecard" in my real application), with other groups of rows again hidden/unhidden in the "Tasks" sheet. How should I adjust this macro to accomodate these criteria?

    Thank you for help!

    The Needy Neophyte

+ 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] VBA Hide/Unhide rows on other sheet
    By MikeIke in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-19-2014, 03:40 AM
  2. [SOLVED] allow hide/unhide rows&columns when sheet protected (macro)
    By jw01 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-15-2013, 03:18 AM
  3. Replies: 1
    Last Post: 08-19-2011, 10:25 AM
  4. Macro to hide/unhide rows using box then duplicate through sheet
    By BEEGINA in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-05-2011, 11:51 PM
  5. Macro/VBA - Hide/unhide rows in sheet through YES/NO Controll
    By age in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-18-2005, 05:09 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