Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Friday, February 3, 2017 at 12:48:25 AM UTC-8, Claus Busch wrote:
Hi Howard, Am Fri, 3 Feb 2017 00:35:15 -0800 (PST) schrieb L. Howard: It hides with CS but does not unhide with SA. I thought it should hide with both values and unhide with any other. Try: Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range) If Target.Address(0, 0) < "H8" Or Target.Count 1 Then Exit Sub Dim flag As Boolean Select Case Target.Value Case "CS" flag = True Case "SA" flag = False End Select For Each Sh In Worksheets With Sh .Rows("23:28").Hidden = flag End With Next End Sub Hi Claus, That works perfect! Many thanks Howard |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Get values from 15 sheets in a Wbook | Excel Programming | |||
Copy cell (C6) from multiple sheets in a wbook to another workbook | Excel Programming | |||
Copy cell (C6) from multiple sheets in a wbook to another workbook | Excel Programming | |||
Copy cell (C6) from multiple sheets in a wbook to another workbook | Excel Programming | |||
Copy cell (C6) from multiple sheets in a wbook to another workbook | Excel Programming |