Dave,
Your Code Works! I'm pretty sure it is doing exactly what I want it to. I didn't think it was working because it was toggled based off when B3:BA3 Values change right? that's
Private Sub Worksheet_Change(ByVal Target As Range)
I changed the code to...
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
If Union(Range("$B$1:$BA$100"), Target).Address = Range("$B$1:$BA$100").Address Then
If Target.Value = 0 Then Target.EntireColumn.Hidden = True
End If
End Sub
in order to update with selection change (Thanks Foxguy for clearing that up!!) in order to test the code was working, AND IT WORKED!
I'm still curious why the Range its referencing are rows 1:100, but, it seems to be working
Any one care to elaborate on why the B1:B100 Range Works?
Bookmarks