W
William
I have a toggle button that I would like to unhide some columns and remove a
border line on the first click. On the second click, I would like for it to
rehide the same columns and put the line back. I thought that I had this
figured out. Please help. This is what I have so far:
Private Sub ToggleButton1_Click()
ActiveSheet.Range(“C:Eâ€).EntireColumn.Hidden=False
ActiveSheet.Range("F:F").Borders(xlEdgeLeft).LineStyle = xlNone
Not.ActiveSheet.Range“C:Eâ€).EntireColumn.Hidden=True
Not.ActiveSheet.Range("F:F").Borders(xlEdgeLeft).Weight = xlThin
End Sub
border line on the first click. On the second click, I would like for it to
rehide the same columns and put the line back. I thought that I had this
figured out. Please help. This is what I have so far:
Private Sub ToggleButton1_Click()
ActiveSheet.Range(“C:Eâ€).EntireColumn.Hidden=False
ActiveSheet.Range("F:F").Borders(xlEdgeLeft).LineStyle = xlNone
Not.ActiveSheet.Range“C:Eâ€).EntireColumn.Hidden=True
Not.ActiveSheet.Range("F:F").Borders(xlEdgeLeft).Weight = xlThin
End Sub