I have written some code to make some columns visible based on a click of a button. I'd like to make it so when these columns appear (L & M) three other columns are hidden (I, J, and K). Any suggestions would be welcome. Thanks!
Sub Hide()
Sheets("Increase Program Workbook").Unprotect Password:="Password"
With Columns("L:M")
If .EntireColumn.Hidden = True Then
.EntireColumn.Hidden = False
Else
.EntireColumn.Hidden = True
End If
Sheets("Increase Program Workbook").Protect Password:="Password"
End With
End Sub
Sub Hide()
Sheets("Increase Program Workbook").Unprotect Password:="Password"
With Columns("L:M")
If .EntireColumn.Hidden = True Then
.EntireColumn.Hidden = False
Else
.EntireColumn.Hidden = True
End If
Sheets("Increase Program Workbook").Protect Password:="Password"
End With
End Sub