PC Review


Reply
Thread Tools Rate Thread

About the autocalculate in the status bar...

 
 
Mel
Guest
Posts: n/a
 
      1st Oct 2009
Excel 2003

I take it there's no way VBA method to access control of the
AutoCalculate feature in the status bar that shows avg/sum/etc upon
selecting cells of numbers... right?

I wanted to create a button that would make it toggle from sum to avg
instead of the conventional right-clicking it and then choosing the
function manually.

If not, I'm thinking of making my own display such as a modeless form
or toolbar.

Any experience with this or any ideas?

Thanks,
Melina
 
Reply With Quote
 
 
 
 
Gord Dibben
Guest
Posts: n/a
 
      2nd Oct 2009
How about you see several functions at once?

Forgot who posted this.......Jim Rech?

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)

End If
errH:
Application.StatusBar = s
End Sub


Gord Dibben MS Excel MVP

On Thu, 1 Oct 2009 15:51:53 -0700 (PDT), Mel <(E-Mail Removed)> wrote:

>Excel 2003
>
>I take it there's no way VBA method to access control of the
>AutoCalculate feature in the status bar that shows avg/sum/etc upon
>selecting cells of numbers... right?
>
>I wanted to create a button that would make it toggle from sum to avg
>instead of the conventional right-clicking it and then choosing the
>function manually.
>
>If not, I'm thinking of making my own display such as a modeless form
>or toolbar.
>
>Any experience with this or any ideas?
>
>Thanks,
>Melina


 
Reply With Quote
 
Mel
Guest
Posts: n/a
 
      2nd Oct 2009
Too cool! Much simpler than I was going to build. Saved me a lot of
time. Thanks.

Melina

On Oct 1, 6:55*pm, Gord Dibben <gorddibbATshawDOTca> wrote:
> How about you see several functions at once?
>
> Forgot who posted this.......Jim Rech?
>
> 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)
>
> * * End If
> errH:
> * * Application.StatusBar = s
> End Sub
>
> Gord Dibben *MS Excel MVP
>
> On Thu, 1 Oct 2009 15:51:53 -0700 (PDT), Mel <mel.tu...@yahoo.com> wrote:
> >Excel 2003

>
> >I take it there's no way VBA method to access control of the
> >AutoCalculate feature in the status bar that shows avg/sum/etc upon
> >selecting cells of numbers... right?

>
> >I wanted to create a button that would make it toggle from sum to avg
> >instead of the conventional right-clicking it and then choosing the
> >function manually.

>
> >If not, I'm thinking of making my own display such as a modeless form
> >or toolbar.

>
> >Any experience with this or any ideas?

>
> >Thanks,
> >Melina


 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      2nd Oct 2009
The originator will be happy to hear that.

Glad I could pass it on.


Gord

On Thu, 1 Oct 2009 19:45:43 -0700 (PDT), Mel <(E-Mail Removed)> wrote:

>Too cool! Much simpler than I was going to build. Saved me a lot of
>time. Thanks.
>
>Melina
>
>On Oct 1, 6:55*pm, Gord Dibben <gorddibbATshawDOTca> wrote:
>> How about you see several functions at once?
>>
>> Forgot who posted this.......Jim Rech?
>>
>> 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)
>>
>> * * End If
>> errH:
>> * * Application.StatusBar = s
>> End Sub
>>
>> Gord Dibben *MS Excel MVP
>>
>> On Thu, 1 Oct 2009 15:51:53 -0700 (PDT), Mel <mel.tu...@yahoo.com> wrote:
>> >Excel 2003

>>
>> >I take it there's no way VBA method to access control of the
>> >AutoCalculate feature in the status bar that shows avg/sum/etc upon
>> >selecting cells of numbers... right?

>>
>> >I wanted to create a button that would make it toggle from sum to avg
>> >instead of the conventional right-clicking it and then choosing the
>> >function manually.

>>
>> >If not, I'm thinking of making my own display such as a modeless form
>> >or toolbar.

>>
>> >Any experience with this or any ideas?

>>
>> >Thanks,
>> >Melina


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
AutoCalculate Sol Microsoft Excel Crashes 2 30th Jan 2009 04:03 PM
Status Bar Autocalculate Width =?Utf-8?B?UEsgVHJhaW5lcg==?= Microsoft Excel Worksheet Functions 0 26th Oct 2005 05:07 PM
Re: excel autocalculate result in status bar PaulD Microsoft Excel Programming 1 9th Sep 2005 07:15 AM
Excel 2003 status bar autocalculate resize the width =?Utf-8?B?VmFzaWxpcyBHbHlrb3M=?= Microsoft Excel Misc 1 16th Jun 2005 09:09 PM
AutoCalculate and UDF Ronald Dodge Microsoft Excel Programming 5 16th Aug 2004 11:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:39 AM.