Results 1 to 2 of 2

Hide Row using Button

Threaded View

  1. #1
    Registered User
    Join Date
    01-07-2014
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    10

    Hide Row using Button

    Hello

    I want to unhide one row at a time but then also have an option to hide a row if it is not needed. I am using an ActiveX button to unhide one row at a time and that is working well, but what code would I need for (I assume) a second ActiveX button to hide one row at a time.

    Unhiding is:

    Private Sub CommandButton2_Click()
    Dim r As Long
    
    r = 55
    Do Until Rows(r).Hidden = True Or r > 64
        r = r + 1
    Loop
    If r <= 64 Then Rows(r).Hidden = FalseShare
    End Sub
    Hiding is...?

    Thanks!
    Last edited by alansidman; 02-14-2014 at 12:37 AM. 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. Hide a picture button placed in all sheets using a option button (form control)
    By lagaranch in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-26-2012, 10:33 AM
  2. VBA hide row based on pull down with button to toggle show/hide
    By myronr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-12-2012, 06:07 PM
  3. Toggle Button to Hide column A while showing B and hide B while showing A
    By glee in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2011, 02:02 PM
  4. Hide button
    By Pedro1803 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-30-2011, 04:27 PM
  5. Hide a button
    By leelee23 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-10-2007, 04:19 PM

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