Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default 2007 Status Bar in Excel 2003

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

"Brennan" wrote in message
...
Thanks Niek,

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

B



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hiding status bar in Excel 2007 Johnny J Woodhouse Excel Discussion (Misc queries) 3 October 14th 07 09:43 PM
How can I display status bar value in Excel 2007 Al B Excel Discussion (Misc queries) 1 March 11th 07 12:35 AM
Copy from Excel 2003 status bar Will Fleenor Excel Programming 2 February 26th 07 08:33 PM
Excel 2003 Status Bar Calculations WeyburnWaterOperators Excel Discussion (Misc queries) 3 August 19th 06 12:04 AM
My Excel 2007 doesn't have a status bar, pls show me how? InDistressWithExcel Excel Discussion (Misc queries) 1 August 17th 06 09:09 PM


All times are GMT +1. The time now is 05:49 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"