Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello
I would like to be able to click on cell A25 and hide any rows in 26-44 that have an 1 in Col A. I can use this code to hide the rows using a button, but I am not sure how to incorporate the click event to fire the mcaro. My code : rivate Sub CommandButton1_Click() Application.ScreenUpdating = False Dim I As Long Dim Hidden As Boolean For I = 26 To 44 If Rows(I).EntireRow.Hidden Then Hidden = True Rows(I).EntireRow.Hidden = False End If Next I If Hidden Then Exit Sub For I = 26 To 44 Step 1 If Cells(I, 1).Value = 1 Then Range(Cells(I, 1), Cells(I, 1)).EntireRow.Hidden = True End If Next I End Sub Thanks for your help |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Hyperlink from one.xlsx cell to another two.xlxs cell & click back | Excel Worksheet Functions | |||
How do I double click a cell and jump to cell's referenced cell | Excel Discussion (Misc queries) | |||
Click on graph bar to execute a double-click in a pivot table cell | Charts and Charting in Excel | |||
Click on cell-calendar drops down-click on date-date fills cell. . | Setting up and Configuration of Excel | |||
Want to be able to click on a cell and have a list box appear to give values to populate a cell | Excel Programming |