2007 Status Bar in Excel 2003


B

Brennan

I have Excel 2007 at home and like the new functionality in the status bar
where it will show sum, count, average etc. At work I only have 2003. Is
there a way to create that functionality in 2003 using VBA? I appreciate the
help.

B
 
Ad

Advertisements

N

Niek Otten

Right-click in the area where the Sum etc should be. You get several options.

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

|I have Excel 2007 at home and like the new functionality in the status bar
| where it will show sum, count, average etc. At work I only have 2003. Is
| there a way to create that functionality in 2003 using VBA? I appreciate the
| help.
|
| B
 
B

Brennan

HI Niek,

Thanks for your reply. I would like for the status bar to show multiple
categories, not just the one category. So for example, I would like to
highlight some cells and see the count, sum and average, not just the sum.
Please let me know if there is a way to do this. Thanks

B
 
N

Niek Otten

I don't think that can be done without VBA programming

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

| HI Niek,
|
| Thanks for your reply. I would like for the status bar to show multiple
| categories, not just the one category. So for example, I would like to
| highlight some cells and see the count, sum and average, not just the sum.
| Please let me know if there is a way to do this. Thanks
|
| B
|
| "Niek Otten" wrote:
|
| > Right-click in the area where the Sum etc should be. You get several options.
| >
| > --
| > Kind regards,
| >
| > Niek Otten
| > Microsoft MVP - Excel
| >
| > |I have Excel 2007 at home and like the new functionality in the status bar
| > | where it will show sum, count, average etc. At work I only have 2003. Is
| > | there a way to create that functionality in 2003 using VBA? I appreciate the
| > | help.
| > |
| > | B
| >
| >
| >
 
B

Brennan

Thanks Niek,

Any chance you know the VBA code for this? I am fairly comfortable with
VBA. Thanks

B
 
N

Niek Otten

<Any chance you know the VBA code for this?>

No, Sorry!


| Thanks Niek,
|
| Any chance you know the VBA code for this? I am fairly comfortable with
| VBA. Thanks
|
| B
 
Ad

Advertisements

J

Jim Rech

I don't think that can be done without VBA programming

I doubt even with VBA, Niek<g>.

--
Jim
|I don't think that can be done without VBA programming
|
| --
| Kind regards,
|
| Niek Otten
| Microsoft MVP - Excel
|
|| HI Niek,
||
|| Thanks for your reply. I would like for the status bar to show multiple
|| categories, not just the one category. So for example, I would like to
|| highlight some cells and see the count, sum and average, not just the
sum.
|| Please let me know if there is a way to do this. Thanks
||
|| B
||
|| "Niek Otten" wrote:
||
|| > Right-click in the area where the Sum etc should be. You get several
options.
|| >
|| > --
|| > Kind regards,
|| >
|| > Niek Otten
|| > Microsoft MVP - Excel
|| >
|| > |I have Excel 2007 at home and like the new functionality in the status
bar
|| > | where it will show sum, count, average etc. At work I only have
2003. Is
|| > | there a way to create that functionality in 2003 using VBA? I
appreciate the
|| > | help.
|| > |
|| > | B
|| >
|| >
|| >
|
|
 
Ad

Advertisements

P

Peter T

Try this in the ThisWorkbook. module (rt-click icon next to File, view code)

Private Sub Workbook_SheetActivate(ByVal Sh As Object)
Application.StatusBar = False
If TypeName(Selection) = "Range" Then
Workbook_SheetSelectionChange Sh, Selection
End If
End Sub

Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, _
ByVal Target As Range)
Dim s As String
Dim wfn As WorksheetFunction
Set wfn = Application.WorksheetFunction
On Error GoTo errH:
If wfn.Count(Target) < 2 Then
s = ""
Else
s = "Sum=" & wfn.Sum(Target) & " " & _
"Avg=" & wfn.Average(Target) & " " & _
"Min=" & wfn.Min(Target) & " " & _
"Max=" & wfn.Max(Target) ' etc
End If
errH:
Application.StatusBar = s

End Sub

If some non-range object is selected the statusbar will not be cancelled.
If it does what you want you could put it in a class module that traps
application level events in an addin or your Personal.

Regards,
Peter T
 

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