+ Reply to Thread
Results 1 to 3 of 3

VBA : Hide Blank Rows

  1. #1
    Forum Contributor
    Join Date
    06-05-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2016
    Posts
    110

    VBA : Hide Blank Rows

    Dear all,

    Need you help with correcting / simplifying macro to hide blank rows.

    PFA for the sheet. Row 18 is not being hidden.

    Please Login or Register  to view this content.
    Request your help in correcting the code.

    Thanks,
    Vinod Krishna
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: VBA : Hide Blank Rows

    Because your lastrow variable only considers cells with data in them your last row is row 16. Row 18 is not being considered in the loop. The quick fix is to increase LastRow by one or 2. Example:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-29-2013
    Location
    VietNam
    MS-Off Ver
    Excel 2003
    Posts
    46

    Re: VBA : Hide Blank Rows

    Try to
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Hide Blank Rows
    By divamarsh in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 10-06-2014, 06:20 PM
  2. Hide blank rows
    By ABSTRAKTUS in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-17-2012, 01:56 PM
  3. Hide Blank rows
    By Charity in forum Excel General
    Replies: 15
    Last Post: 11-23-2006, 08:20 AM
  4. Hide Blank Rows
    By dee in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-17-2006, 06:35 PM
  5. Formula to hide blank rows
    By Ladyra in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-25-2005, 03:06 PM

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