#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 788
Default lenght of status bar

Hi all,

Can someone please tell me how can I enlarge the box in status bar where the
calculations appears?

e.x. if the sum of the numbers I highlight in the sheet is large it don't
appear whole.

Thanks
Chris
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 320
Default lenght of status bar

You can't enlarge the box, but you can do this:
Right/click the Excel LOGO (near the file menu), select "View Code", paste
this in:
Private Sub Workbook_SheetBeforeRightClick(ByVal Sh As Object, ByVal Target
As Range, Cancel As Boolean)
On Error Resume Next
With Application.CommandBars("Cell")
.Controls("Sum of Selection").Delete
With .Controls.Add(msoControlButton)
.Caption = "Sum of Selection"
.OnAction = "SumSel"
End With
End With
End Sub

In a regular module, use EITHER:
Sub SumSel()
MsgBox Application.Sum(Selection)
End Sub

OR

Sub SumSel()
'This sub will put the sum in the status bar for 5 seconds
Application.Statusbar = Application.Sum(Selection)
Application.ontime NOW+5/86400,"ClearBar" '5 seconds
End Sub
Sub ClearBar()
Application.Statusbar = False
End Sub


Bob Umlas
Excel MVP
-------------------------
"Chris" wrote:

Hi all,

Can someone please tell me how can I enlarge the box in status bar where the
calculations appears?

e.x. if the sum of the numbers I highlight in the sheet is large it don't
appear whole.

Thanks
Chris

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 788
Default lenght of status bar

Thank you dear Bob!! Very helpful answer!

"Bob Umlas, Excel MVP" wrote:

You can't enlarge the box, but you can do this:
Right/click the Excel LOGO (near the file menu), select "View Code", paste
this in:
Private Sub Workbook_SheetBeforeRightClick(ByVal Sh As Object, ByVal Target
As Range, Cancel As Boolean)
On Error Resume Next
With Application.CommandBars("Cell")
.Controls("Sum of Selection").Delete
With .Controls.Add(msoControlButton)
.Caption = "Sum of Selection"
.OnAction = "SumSel"
End With
End With
End Sub

In a regular module, use EITHER:
Sub SumSel()
MsgBox Application.Sum(Selection)
End Sub

OR

Sub SumSel()
'This sub will put the sum in the status bar for 5 seconds
Application.Statusbar = Application.Sum(Selection)
Application.ontime NOW+5/86400,"ClearBar" '5 seconds
End Sub
Sub ClearBar()
Application.Statusbar = False
End Sub


Bob Umlas
Excel MVP
-------------------------
"Chris" wrote:

Hi all,

Can someone please tell me how can I enlarge the box in status bar where the
calculations appears?

e.x. if the sum of the numbers I highlight in the sheet is large it don't
appear whole.

Thanks
Chris

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
PULLING OUT CONSECUTIVE ROWS GARY Excel Discussion (Misc queries) 2 August 26th 06 04:25 AM
Status Bar Configuration area Jolly Jolly Excel Worksheet Functions 3 July 5th 06 01:46 AM
Status Changes NL Excel Worksheet Functions 2 April 2nd 06 07:27 PM
List "OPEN" orders based on a status column beechum1 Excel Worksheet Functions 2 February 13th 06 12:12 PM
returning a sheet to blank orginal status? Mile029 Excel Discussion (Misc queries) 2 July 13th 05 08:28 PM


All times are GMT +1. The time now is 08:56 PM.

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"