+ Reply to Thread
Results 1 to 4 of 4

Hide certain rows from given list

  1. #1
    Registered User
    Join Date
    07-12-2013
    Location
    mexico
    MS-Off Ver
    Excel 2010
    Posts
    18

    Hide certain rows from given list

    Hello everyone,

    I have this problem, I'm sure you can help!

    Let's say I have a given list of numbers in a worksheet


    2
    5
    7
    9
    12
    15
    16
    33
    43

    And in another worksheet I have a range of 50 rows hidden (from A1 to A50)

    I need a macro that unhides only the rows corresponding to the numbers in the list, that is row 2, 5, 7, 9, 12, ...


    Also the amount of numbers in the list is variable (between 1 and 50)


    Thanks!!!

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    re: Hide certain rows from given list

    Maybe:

    Please Login or Register  to view this content.

  3. #3
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    re: Hide certain rows from given list

    Hi, barqujo,

    from what I understand you may have a go with this, the numbers are located in Sheet1 starting with A1 downwards with no blanks:
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  4. #4
    Registered User
    Join Date
    07-12-2013
    Location
    mexico
    MS-Off Ver
    Excel 2010
    Posts
    18

    re: Hide certain rows from given list

    Hello HaHoBe

    It just what I needed thank you!!

+ 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