+ Reply to Thread
Results 1 to 9 of 9

Hiding/Unhiding rows

  1. #1
    Registered User
    Join Date
    02-08-2010
    Location
    Phil
    MS-Off Ver
    Excel 2003
    Posts
    4

    Hiding/Unhiding rows

    Hi,

    I have a problem with hiding and unhiding columns. Is there a way wherein I can automatically hide the row(s) if the cell = "N/A" and will unhide if it's not equal to "NA".

    Please see the attachment Im using excel 2003 btw.

    You can see in Sheet2 to that it contains the table for the student grades. "N/A" means that they are not enrolled on that subject. While in sheet1, What I want to happen is that you will select a student name and below, it will automatically display the grades of the student on their enrolled subjects only. So, those fields with "N/A" will hide and when I update the value of N/A it will unhide.

    I'm just a beginner when it comes to macro. Thanks!
    Attached Files Attached Files
    Last edited by cool53; 02-08-2010 at 11:36 PM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Hiding/Unhiding rows

    cool, there are several threads in this forum dealing with exactly that. Have you done a search?

  3. #3
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Hiding/Unhiding rows

    See attached. Using the worksheet_events.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  4. #4
    Registered User
    Join Date
    02-08-2010
    Location
    Phil
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Hiding/Unhiding rows

    Yes, of course I did searched before I posted this thread.

    I followed the code of excelxx in this thread ---> http://www.excelforum.com/excel-prog...ero-value.html

    Well, It successfully hide the rows if the value is zero but when I change the value of "0" into other number, the rows does not unhide.

    Anyway, if there are other links in this site that is more similar with my problem please give me the link.

    Thanks.

  5. #5
    Registered User
    Join Date
    02-08-2010
    Location
    Phil
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Hiding/Unhiding rows

    Thaks Palmetto. That's exactly what I'm looking for.

    It would be of big help for me if you will explain your code because I'm just learning macro.
    Just give me a message and don't reply here anymore. My problem is solved.

    Thanks a lot!

  6. #6
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Hiding/Unhiding rows

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  7. #7
    Registered User
    Join Date
    07-04-2009
    Location
    Singapore
    MS-Off Ver
    Office 2013
    Posts
    36

    Re: Hiding/Unhiding rows

    Hi! I understand this thread might be closed but my problem is rather similar to this but as I'm very new to macros and have no good knowledge on it. I am not able to modify and apply the macros for my scenario..

    Please help if can.

    I will also like to hide/unhide rows of NA() in the column B of my spreadsheet call "Bass model" but it needs to be triggered by a combo box in another spreadsheet call "Projections". This combo box is in C2. Whenever user choose the combo box, the data in the table in Projections will change and the rows of NA() varies..

    can help?? thanks!!

  8. #8
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Hiding/Unhiding rows

    pinkpeace7,

    Unfortunately you need to post your question in a new thread, it's against the forum rules to post a question in the thread of another user. If you create your own thread, any advice will be tailored to your situation so you should include a description of what you've done and are trying to do. Also, if you feel that this thread is particularly relevant to what you are trying to do, you can surely include a link to it in your new thread.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  9. #9
    Registered User
    Join Date
    07-04-2009
    Location
    Singapore
    MS-Off Ver
    Office 2013
    Posts
    36

    Re: Hiding/Unhiding rows

    Thanks and sorry about this! Will be creating a new thread.

+ 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