Results 1 to 20 of 20

hiding rows which contain checkboxes but checkboxes don't hide as they should

Threaded View

Gti182 hiding rows which contain... 12-01-2016, 10:52 AM
Logit Re: hiding rows which contain... 12-01-2016, 11:51 AM
Gti182 Re: hiding rows which contain... 12-01-2016, 03:59 PM
Logit Re: hiding rows which contain... 12-01-2016, 04:08 PM
Gti182 Re: hiding rows which contain... 12-01-2016, 04:49 PM
Winon Re: hiding rows which contain... 12-01-2016, 05:18 PM
Logit Re: hiding rows which contain... 12-01-2016, 05:27 PM
Winon Re: hiding rows which contain... 12-01-2016, 05:33 PM
Logit Re: hiding rows which contain... 12-01-2016, 05:35 PM
Winon Re: hiding rows which contain... 12-01-2016, 05:54 PM
Gti182 Re: hiding rows which contain... 12-02-2016, 04:27 AM
Winon Re: hiding rows which contain... 12-02-2016, 05:45 AM
Gti182 Re: hiding rows which contain... 12-02-2016, 06:29 AM
Winon Re: hiding rows which contain... 12-02-2016, 07:24 AM
Gti182 Re: hiding rows which contain... 12-02-2016, 08:07 AM
Winon Re: hiding rows which contain... 12-02-2016, 10:34 AM
Gti182 Re: hiding rows which contain... 12-02-2016, 11:06 AM
Winon Re: hiding rows which contain... 12-02-2016, 02:59 PM
Gti182 Re: hiding rows which contain... 12-05-2016, 05:27 AM
Ghuphuneho Re: hiding rows which contain... 08-08-2019, 10:26 AM
  1. #6
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: hiding rows which contain checkboxes but checkboxes don't hide as they should

    Hi Gti182,

    I have amended your code in the Module below:

    Sub Hide_rows()
    'Application.ScreenUpdating = False
    'Application.Calculation = xlCalculationManual
    'Application.DisplayAlerts = False
    
        Dim cell As Range
        For Each cell In Range("$E$19:$E$80")
            'If cell.Value <> "*" Then
               cell.EntireRow.Hidden = True
           ' End If
        Next
        
        Dim cb As CheckBox
        For Each cb In ActiveSheet.CheckBoxes
            cb.Visible = cb.Value = 0
        Next cb
           
    'Application.ScreenUpdating = True
    'Application.Calculation = xlCalculationAutomatic
    'Application.ScreenUpdating = True
    
    End Sub
    
    Sub Unhide_rows()
    Application.ScreenUpdating = False
    Application.Calculation = xlCalculationManual
    Application.DisplayAlerts = False
    
        Rows("19:80").Hidden = False
        
        ActiveSheet.CheckBoxes.Visible = True
        
    Application.ScreenUpdating = True
    'Application.Calculation = xlCalculationAutomatic
    'Application.ScreenUpdating = True
    
    End Sub
    Please see if the attached Workbook works for you now.

    Regards.
    Attached Files Attached Files
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Help Needed with Checkboxes to Hide or Unhide Rows
    By dgibney in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-25-2014, 11:39 AM
  2. [SOLVED] Hide/unhide rows with checkboxes
    By mixer in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-05-2014, 03:58 PM
  3. Print Sheets based on checkboxes in UserForm, Checkboxes also control another macro
    By krackaberr in forum Excel Programming / VBA / Macros
    Replies: 34
    Last Post: 03-05-2013, 11:12 AM
  4. [SOLVED] Automatically Hiding rows based on checkboxes
    By Jake Bierly in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-19-2012, 06:08 PM
  5. Hide rows AND checkboxes in that row with code/macro
    By Riqueza in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-23-2012, 05:38 AM
  6. Hiding rows, but checkboxes aren't hidden
    By kid_epicurus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-19-2012, 02:46 PM
  7. Hiding and Unhiding a Dynamic Range of Rows Using Checkboxes
    By markymark84 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-22-2012, 11:51 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