Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Guys
I have the following code which hides/unhides rows, that I have assigned to a button... Private Sub CommandButton1_Click() Application.ScreenUpdating = False Dim I As Long Dim Hidden As Boolean For I = 8 To 426 If Rows(I).EntireRow.Hidden Then Hidden = True Rows(I).EntireRow.Hidden = False End If Next I If Hidden Then Exit Sub For I = 8 To 426 If Cells(I, 2).Value < "TOTAL" Then Range(Cells(I, 1), Cells(I, 1)).EntireRow.Hidden = True End If Next I End Sub .... how do I toggle the button caption so that when that only the TOTAL rows are showing the caption is SHOW and else the caption is HIDE? Thanks! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Adding .xla button for Toggle Calculation Button | Excel Programming | |||
Toggle change control button face id & caption | Excel Programming | |||
Place the caption of a toggle button into a cell | Excel Worksheet Functions | |||
Caption of a button | Excel Programming | |||
Toggle custom button caption | Excel Programming |