Private Sub CommandButton1_Click()
With CommandButton1
If .Caption = "隐藏列" Then
Columns("F").Hidden = True
Columns("H").Hidden = True
Columns("I").Hidden = True
.Caption = "显示列"
Exit Sub
End If
If .Caption = "显示列" Then
Columns("F").Hidden = FALSE
Columns("H").Hidden = FALSE
Columns("I").Hidden = FALSE
.Caption = "隐藏列"
Exit Sub
End If
End With
End Sub