Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Checkbox to hide or show rows

I put a checkbox from the control toolbox toolbar on a worksheet.

I double clicked on it and used this sub:

Option Explicit
Private Sub CheckBox1_Click()
Me.Rows("10:12").Hidden = not Me.CheckBox1.Value
End Sub

If it's checked, then show them??? (or remove the Not to reverse the toggle)



wendy wrote:

I need help creating a checkbox that works like a toggle - if checked, a macro will run to show certain rows on sheet; if unchecked, the rows remain hidden or get hidden if they were showing.


--

Dave Peterson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
use checkbox to hide rows ScottB Excel Discussion (Misc queries) 2 August 20th 08 01:05 PM
Hide Rows - copy and paste only rows that show Access101 Excel Worksheet Functions 3 March 1st 06 12:39 AM
Hide rows but show when printing dyukon Excel Discussion (Misc queries) 1 January 16th 06 05:08 PM
Hide and show Rows Duane Excel Discussion (Misc queries) 2 April 19th 05 10:50 PM
Checkbox to hide and unhide rows Please. Steved Excel Worksheet Functions 2 December 6th 04 11:30 PM


All times are GMT +1. The time now is 12:09 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"