XLD kindly showed me how to hide a column with the following code
[vba]
Private Sub ToggleButton1_Click
If ToggleButton1.Value Then
Column(8).EntireColumn.Hidden = False
Else
Column(8).EntireColumn.Hidden = True
End If
End Sub
[/vba]
The code does exactly what it was intended to do, so my question here is how does this code change if you wanted to hide more columns?
Is it a simple Columns(8:10) for consecutive columns, and what about if the columns were not consecutive?
Also is it a requirement for the False case to precede the True case?
Ted