Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 03-24-2015, 12:05 PM
Snakehips Snakehips is offline Hide rows with checkbox Windows 8 Hide rows with checkbox Office 2013
Advanced Beginner
 
Join Date: Mar 2015
Posts: 36
Snakehips is on a distinguished road
Default

gebobs,

ActiveX controls have arguably more properties that are readily set / read via the vba editor Properties pane and thus easy code.

Coding for form control properties is perhaps not so obvious but there are several ways you can refer to them.

One nice thing about using Form objects is that you can style and format them so much better than ActiveX

Try coding for your form checkbox as below.

Code:
Sub cbClaimHide_Click()
  If ActiveSheet.CheckBoxes("cbClaimHide").Value = 1 Then
    [47:53].EntireRow.Hidden = True
    Else: [47:53].EntireRow.Hidden = False
  End If
End Sub
Hope that helps.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hide rows with checkbox Show/Hide Text based on Checkbox Selection tammytran105 Word VBA 7 10-02-2014 04:30 PM
Hide rows with checkbox Delete rows using checkbox in word deboer Word VBA 5 06-22-2014 05:21 AM
Hide rows with checkbox Hide Checkbox When Printing vinceplunkett Word 1 12-03-2013 01:53 AM
Hide Rows YounesB3 Excel 2 10-29-2012 05:40 AM
Hide rows with checkbox VBA for CheckBox to Hide Slides mutchy25 PowerPoint 1 09-21-2012 01:40 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:13 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft