+ Reply to Thread
Results 1 to 2 of 2

Unhide next row on button click

  1. #1
    Registered User
    Join Date
    10-21-2016
    Location
    US
    MS-Off Ver
    2016
    Posts
    1

    Unhide next row on button click

    Hi All,

    I have an excel sheet which has about 5000 hidden rows. We've only used about 300 of them. We hide them because the color scheme of the first 5000 rows can be overwhelming when there's no data written. We use an autofilter to hide anything up to row 5000 that <> "No" in the "Completed" column. (Column S). This keeps everything else with no data on the screen much cleaner by showing rows 5000+ which keeps all the unused space white.

    Currently, when I want to add a new line, I have to turn off the autofilter and scroll down 300+ lines to add the data.

    Is there a way to make a button that looks at "S4:S5000" and unhides the first row it finds where S = ""
    If there's a way to also make that S = "No" in the process, that would be fantastic.

    Any help is greatly appreciated.

    Thanks in advance!
    Last edited by Andrewgram; 10-21-2016 at 11:42 AM.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Unhide next row on button click

    Change the red range to the the range of cells you autofilter.

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ 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. [SOLVED] make button single click to avoid user double click
    By Muzza1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-25-2016, 01:02 AM
  2. [SOLVED] Hide unhide a row with one click
    By SHELTONUNDERDOG in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-26-2015, 04:45 PM
  3. Button Click on Spreadsheet commanded by Button Click on Userform
    By Quilie19 in forum Excel Programming / VBA / Macros
    Replies: 33
    Last Post: 04-07-2015, 11:35 PM
  4. [SOLVED] Using VBA to Hide and Unhide Columns with Click of Button
    By shiva_reshs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-03-2014, 03:29 PM
  5. [SOLVED] Hide And Unhide Column With One Button,,,,Once Click Hide,,,,,Again Click Unhide
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-11-2014, 07:58 AM
  6. [SOLVED] click on a color button and after button click it will color entire row of cell you click
    By swade730 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-11-2014, 06:06 PM
  7. [SOLVED] Unhide textboxes by button click
    By contaminated in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-09-2012, 04:15 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