Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hello I want to hide columns "e" and "f" if cells C7 says anything else
than "Web System ". I created the code below and it works except that it also hides columns "e" and "f" if I enter anything in in row 7 thanks Private Sub Worksheet_Change(ByVal Target As Range) If Target.Column = 3 And (Target.Value = "Web System") Then Columns("E:F").Hidden = False Else: Columns("E:F").Hidden = True End If End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro/code to hide rows | Excel Worksheet Functions | |||
Hide VBA code help | Excel Worksheet Functions | |||
How to hide VB code from Excel file | Setting up and Configuration of Excel | |||
When i hide columns it hides whole sheet | Excel Discussion (Misc queries) | |||
Hide Code | Excel Discussion (Misc queries) |