Results 1 to 4 of 4

Help with VBA hiding all rows except next one to use

Threaded View

  1. #1
    Registered User
    Join Date
    10-18-2015
    Location
    denver, co
    MS-Off Ver
    2011 for Mac
    Posts
    3

    Help with VBA hiding all rows except next one to use

    Howdy. Looking to have a button to push to hide all unused rows in a certain range except for the next one I need for data entry.

    Range BI has names. I will generally skip some rows further down the list. So I basically need something to hide the rows NOT in use, but leaving the next one below last entry (multiple entries).

    Here's what I have that works like a charm, but hides all except rows filled in. Thanks!
    Sub HIDEUNUSEDROWS()
    Dim LR As Long
    LR = Range("BI" & Rows.Count).End(xlUp).Row
    Range("BI12:BI1520").SpecialCells(xlCellTypeBlanks).EntireRow.Hidden = True
    End Sub
    Last edited by alansidman; 10-18-2015 at 10:15 PM. Reason: code tags added

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Check box hiding rows: View moves to where the rows used to be
    By Excel white-belt in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-16-2012, 11:51 AM
  2. Hiding/un-hiding non-specific rows and specific columns
    By MusicMusic in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-05-2008, 09:54 PM
  3. Hiding a button when hiding rows
    By fergusor in forum Excel General
    Replies: 2
    Last Post: 08-10-2006, 09:31 AM
  4. [SOLVED] Hiding a button when hiding rows
    By richard_m_ferguson@hotmail.com in forum Excel General
    Replies: 4
    Last Post: 08-09-2006, 02:19 PM
  5. [SOLVED] Hiding column/row labels --without hiding entire columns/rows
    By daniel.wolff@csfb.com in forum Excel General
    Replies: 2
    Last Post: 10-18-2005, 10:05 PM
  6. Replies: 5
    Last Post: 01-19-2005, 05:26 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