Results 1 to 7 of 7

Hide/Unhide Rows

Threaded View

  1. #1
    Registered User
    Join Date
    10-25-2012
    Location
    Ne/Ia
    MS-Off Ver
    office 2016
    Posts
    52

    Hide/Unhide Rows

    I found some Useful code, but i need it to do more.

    [code]
    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    If Range("B4").Value = 0 Then
    Rows("14:16").EntireRow.Hidden = True
    Else
    Rows("14:16").EntireRow.Hidden = False
    End If
    End Sub
    [code]

    if i add rows above this code it adds the next row in the range to the hide list, but never unhides the additional row.

    Needed:

    I want to hide certain rows that do not need to be seen until a value is entered elsewhere.
    I want to apply this to several sets of rows, even if i need multiple macros.

    The rows that i want to hide will be located below the main body of the report, so row numbers will increase constantly however;
    No rows will be added to the hidden selection, only values will change.
    Attached Files Attached Files

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