![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Join Date: Feb 2002
Location: Macon, Georgia USA
Posts: 116
|
hello all,
I need a little more instructions on why this VBA code does not work the way it suppose too: I put the correct cell in place $K$23, now I want to hide a worksheet called "DutyCode" when info!$k$23 is blank or has "xx" or "XX" in the cell, and then unhide "DutyCode" when the number 27 is inputed in info!$k$23 Private Sub Worksheet_Change(ByVal Target As Range) If Target.Address <> "$k$23" Then Exit Sub If Target.Value = 1234 Then Worksheets("Sheet2").Visible = True Else Worksheets("Sheet2").Visible = False End If End Sub any and all help is gladly tried and tested Thanks Walt |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|