+ Reply to Thread
Results 1 to 3 of 3

Hide or show Rows with IF condition

Hybrid View

  1. #1
    Registered User
    Join Date
    01-12-2013
    Location
    HONG KONG
    MS-Off Ver
    Excel 2010
    Posts
    2

    Hide or show Rows with IF condition

    Hi, I would like to hide Row 16:24 if D14="No"

    No need to Hide if D14 = 'Yes'

    D14 yes/no is from Drop down list.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Hide or show Rows with IF condition

    With this recorded macro.

    Sub Hide_Oeldere()
    
    If Range("d14").Text = "yes" Then
        Rows("16:24").Select
        Selection.EntireRow.Hidden = True
        
    Else
    If Range("d14").Text = "no" Then
        Rows("16:24").Select
        Selection.EntireRow.Hidden = False
        
        Range("D14").Select
    End If
    
    End If
    
    End Sub
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    01-12-2013
    Location
    HONG KONG
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Hide or show Rows with IF condition

    Hello, It is not working sir, Actually I have other macros also working with that.

    the 2nd part is OK. that is the number of Director and Shareholders (i need to change the cell location)

    Also I want, the sheet also to be HIDE according to the number of director or shareholder.

    Thank youl
    Attached Files Attached Files

+ 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