Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dear Guys,
i have a simple Marco that basically hides some rows and columns when i pick the hide option froma drop down list. The problem is i protected the sheet, (but not the drop down list of course) and when i choose the hide option, nothing happens! The code is written below Any suggestion is appreciated.. Thanks! Private Sub Worksheet_Change(ByVal Target As Range) On Error GoTo Reset With Application .EnableEvents = False If Not Application.Intersect(Me.Range("T75"), Target) Is Nothing Then Me.Rows("76:92").Hidden = (UCase(Target.Value) = "HIDE") End If If Not Application.Intersect(Me.Range("t6"), Target) Is Nothing Then Me.Rows("7").Hidden = (UCase(Target.Value) = "HIDE") End If .EnableEvents = True End With Exit Sub Reset: Application.EnableEvents = True End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Protected Sheet | Excel Discussion (Misc queries) | |||
Protected cells in Protected sheet | Excel Programming | |||
Sheet Information - Is sheet protected? | Excel Discussion (Misc queries) | |||
Protected sheet to unprotected sheet | Excel Worksheet Functions | |||
excel - macro code to open a protected sheet, enter passowrd, and then protect sheet | Excel Programming |