Excel Status Toolbar

G

Guest

Hello,

Does anyone know if there is any way to set up the Status Toolbar so that we
can see BOTH Sum and Avg at the same time? It would save me having to switch
back and forth from one to the other all the time...

Thanks,
Hugues
 
B

Bob Phillips

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.DisplayStatusBar = True
On Error Resume Next
Application.StatusBar = "Average=" & Application.Average(Selection) & "; " &
_
"Count=" & Application.CountA(Selection) & "; " & _
"Count nums=" & Application.Count(Selection) & "; "
& _
"Sum=" & Application.Sum(Selection) & "; " & _
"Max=" & Application.Max(Selection) & "; " & _
"Min=" & Application.Min(Selection)
End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top