Results 1 to 3 of 3

Unhide next row when a cell is populated

Threaded View

  1. #1
    Registered User
    Join Date
    01-15-2016
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    7

    Unhide next row when a cell is populated

    Hello,

    I'm creating a report to track email marketing activity. I want to have all the populated rows showing, then one blank at the bottom. When the blank one is populated, I want the next row to unhide itself from a range of hidden rows.

    This is preferable to having loads of empty rows on display between the data and the totals at the bottom.

    I've found this VBA on another forum and amended it very slightly to suit the cells I'm looking at, but seem to have gone wrong somewhere:

    Private Sub Worksheet_Change(ByVal Target As Range)
        With Application
            .ScreenUpdating = False
            .EnableEvents = False
        End With
        If Not Application.Intersect(Range("D26:D149"), Target) Is Nothing Then
            Rows(Target.Row + 1).Hidden = Target.Value = ""
        End If
        With Application
            .ScreenUpdating = True
            .EnableEvents = True
        End With
    End Sub
    A dummy version of the report can be found here: https://drive.google.com/file/d/0B3d...ew?usp=sharing

    Any advice really appreciated!

    Thanks

    Matt
    Last edited by wallyjuk; 02-03-2016 at 12:46 PM. Reason: Requested by moderator

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Assign fixed value to blank cell if adjacent cell is populated.
    By Eric P. in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-15-2015, 08:36 AM
  2. Replies: 1
    Last Post: 11-21-2013, 06:07 AM
  3. Code to restrict cell input until another cell is populated
    By chavanalini in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 11-19-2013, 04:37 AM
  4. Replies: 2
    Last Post: 03-24-2013, 10:58 PM
  5. [SOLVED] Prompt input of future date in cell when another cell has been populated or modified
    By coffeemints in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-07-2013, 06:46 PM
  6. Replies: 7
    Last Post: 10-31-2012, 05:21 AM
  7. Replies: 3
    Last Post: 06-16-2009, 10:07 AM

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