after I subtotal a worksheet and clicked [2] at the upper left - the summary will be shown,
after which, I would like to deactivated the command button - how should the code be written?
kindly correct the following:
If ActiveSheet.Outline.ShowLevels RowLevels:=2 Then CommandButton1.Enabled =...