Results 1 to 3 of 3

Fill Area

Threaded View

  1. #1
    Registered User
    Join Date
    05-23-2007
    Posts
    23

    Fill Area

    Hello fellow coders,

    Here is my second question. It builds upon my first post.

    I use a external data to fill an area with data. There could be empty rows left over which need to be hidden every time the sheet is used or data is updated.
    This is what I came up with. Using a loop and a row to start with.

    Sub Hide_Blank_Rows(ByVal FR, byval LR)
    'use a starting row number, hide row if cell is blank; exit sub if not
    'decrement (move up) one row until data is found
        For i =  LR to FR
           If ISBLANK(Cells(i,3)) Then
           Rows(i).EntireRow.Hidden = True
           Else: End Sub
           i = i -1
       Next
    End Sub
    Thanks in advance,

    Ed
    Last edited by hilander; 05-23-2007 at 05:54 AM.

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