hi
your post is a tad unclear but here is something i did years ago for our
engineering deparment. they wanted to hide/unhide a column that displayed
either metric or english measures. i "disguised" a command button as a column
header and put this code behide it. maybe you can use it as a template(?!?!?)
or maybe get ideas???
Private Sub CB1_Click()
If Columns("C:C").Hidden = True Then
Columns("C:C").Hidden = False
CB1.BackColor = RGB(0, 0, 255)
'CB1.ForeColor =
CB1.Caption = "Metric"
Columns("D
").Hidden = True
Else
Columns("C:C").Hidden = True
Columns("D
").Hidden = False
CB1.BackColor = RGB(245, 30, 5)
'CB1.ForeColor =
CB1.Caption = "English"
End If
End Sub
yeah, i know. not pretty but it did work. this is a directy copy/paste.
regards
FSt1