How activate "NUM" thingie?
Martin,
You could use Application.StatusBar in combination with the Worksheet_SelectionChange event to mimic this. Try this in the sheet's module:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.DisplayStatusBar = True
Application.StatusBar = "Count: " & WorksheetFunction.CountA(Target)
End Sub
You could further adapt the above to use other functions (count, sum, min, max, etc.).
One thing to note is that if you select other sheets, the status bar will not change unless the newly selected sheet has the same code. So, you could add the above code to all sheets in your workbook, or you may want to include two more events in the worksheet so that the statusbar control is returned to Excel when the sheet is deactivated.
Private Sub Worksheet_Activate()
Application.DisplayStatusBar = True
Application.StatusBar = "Count: " & WorksheetFunction.CountA(Selection)
End Sub
Private Sub Worksheet_Deactivate()
Application.StatusBar = False
End Sub
Ben
|