发布网友 发布时间:2022-02-20 00:09
共1个回答
热心网友 时间:2022-02-20 01:38
你可以使用VBA代码来弄个,代码如下:
Private Sub Workbook_Deactivate()
Application.CommandBars(3).Controls("升序排序(&A)").Enabled = True
Application.CommandBars(3).Controls("降序排序(&C)").Enabled = True
End Sub
Private Sub Workbook_Open()
Application.CommandBars(3).Controls("升序排序(&A)").Enabled = False
Application.CommandBars(3).Controls("降序排序(&C)").Enabled = False
End Sub