ÄãµÄ´úÂëֻͳ¼ÆÊý×ÖÁÐÊý¾Ý£¬Èç¹ûÏëÈçexceÄÇÑùÈç¹ûÊÇ×Ö·ûÁлò×Ö·ûÓëÊý×ÖÁв¢´æ£¬Ö»Í³¼ÆÑ¡ÔñÇøÓòµ¥Ôª¸ñÄÚÓÐЧ¸öÊý£¬ÎÒÕâÑùдһÑù²»ÄÜͳ¼Æ£¬Ó¦ÈçºÎдÄØ£¿ÕâÊÇÒ»¸öºÜ·½±ãʵÓõŦÄÜ£¬Ï£ÍûÄãÃǵÄÈí¼þͬÑùÓУ¬Èç¹ûÈí¼þ×Ô´ø´Ë¹¦ÄÜ£¬ÎÒÃǾͲ»Ó÷Ѿ¢×Ô¼º±à´úÂëÁË¡£
'ÒÔÏ´úÂëÓÃÓÚÔÚ״̬À¸ÏÔʾ×Ô¶¯¼ÆËã½á¹û£º
With e.Table
If .TopRow = .BottomRow AndAlso .LeftCol = .RightCol Then
Return
End If
Dim bb As Boolean = True
For c As Integer = .LeftCol To .RightCol
If .Cols(c).IsNumeric = False Then
bb = False
Exit For
End If
Next
If bb = False Then
RibbonMenu.StatusBar.Message3 = "¸öÊý:" & .Aggregate(AggregateEnum.Count, .TopRow,.LeftCol,.BottomRow,.RightCol) & " ÀÛ¼Æ:" & 0 & " ƽ¾ù:" & 0 & " ×î´óÖµ:" & 0 & " ×îСֵ:" & 0
Else
RibbonMenu.StatusBar.Message3 = "¸öÊý:" & .Aggregate(AggregateEnum.Count, .TopRow,.LeftCol,.BottomRow,.RightCol) & " ÀÛ¼Æ:" & .Aggregate(AggregateEnum.Sum,.TopRow,.LeftCol,.BottomRow,.RightCol) & " ƽ¾ù:" & .Aggregate(AggregateEnum.Average,.TopRow,.LeftCol,.BottomRow,.RightCol) & " ×î´óÖµ:" & .Aggregate(AggregateEnum.Max,.TopRow,.LeftCol,.BottomRow,.RightCol) & " ×îСֵ:" & .Aggregate(AggregateEnum.Min,.TopRow,.LeftCol,.BottomRow,.RightCol)
End If
End With
RibbonMenu.StatusBar.Refresh
[´ËÌù×ÓÒѾ±»×÷ÕßÓÚ2023/10/19 17:53:49±à¼¹ý]