+ Reply to Thread
Results 1 to 4 of 4

Row Visible / Invisible

  1. #1
    Registered User
    Join Date
    06-10-2009
    Location
    Germany
    MS-Off Ver
    Excel 2003
    Posts
    46

    Row Visible / Invisible

    Hi,

    I am trying to figure out a Sub, that allows me to make visible/invisible a whole row, depending on the entry in Cell A(n). However, the Sub makes all rows invisible, independent of the value in A(n). Who can identify my mistake?

    Please Login or Register  to view this content.
    Thanks in advance!

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Row Visible / Invisible

    Do you perhaps want:

    Please Login or Register  to view this content.
    I'm assuming you're altering visibility based on value of A in each row being iterated rather than just the value in the last row (as is taking place in your original code)
    If so why not just use an Auto Filter ?

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Row Visible / Invisible

    If you are trying to test the value A then it needs to be in quotes.
    Currently, without the quotes, it is being treated as a variable.

    Please Login or Register  to view this content.
    Do you not also require code to unhide a row if the test fails? As DO has included in his code.
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    06-10-2009
    Location
    Germany
    MS-Off Ver
    Excel 2003
    Posts
    46

    Re: Row Visible / Invisible

    Thanks for your help guys, I indeed used an AutoFilter now, it's a lot easier

+ 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