The attached macro-enabled file has DV with your list on cells in column B, and this code in the sheet's codemodule - just in case I selected the wrong range to apply the code to.
Note that when you want to show adjacent columns, you can use FirstColumn:LastColumn, and when you want a single column you need Column:Column, like
AK:AL,AN:AN
Note too that VBA is case sensitive, so make sure your code uses exactly what is in the list of values.
'1) Copy this code.
'2) Right-Click the sheet tab of interest.
'3) Select "View Code"
'4) Paste the code into the window that appears.
'5) Save the file as a macro-enabled .xlsm file.
'6) Make changes as needed
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("B2:B73")) Is Nothing Then Exit Sub
If Target.Cells.Count > 1 Then Exit Sub
If Target.Value = "" Then Exit Sub
Range("C:BB").EntireColumn.Hidden = True
Select Case Target.Value
Case "1-1 to 1-6"
Range("C:E,G:G,O:O,R:R,V:V,X:Z,AC:AD,AK:AL,AN:AN,AX:AX,BA:BA").EntireColumn.Hidden = False 'C:D:E:G:O:R:V:X:Y:Z:AC:AD:AK:AL:AN:AX:BA
Case "1-7 Progress check"
Range("C:E,G:G,O:O,R:R,V:V,X:Z,AC:AD,AK:AL,AN:AN,AP:AP,AX:AX,BA:BA").EntireColumn.Hidden = False 'C:D:E:G:O:R:V:X:Y:Z:AC:AD:AK:AL:AN:AP:AX:BA
End Select
End Sub
Bookmarks