PC Review


Reply
Thread Tools Rate Thread

Copy from Excel 2003 status bar

 
 
Will Fleenor
Guest
Posts: n/a
 
      26th Feb 2007
Is there a way to copy the result from the 'Status Bar' in Excel 2003 (other
than a VBA macro) to the clipboard?

If not, is there a publically available, simple macro to do this. I do not
know much VBA but can setup and run macros created by others.

Thanks you for your help.

Will Fleenor


 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      26th Feb 2007
If Excel has control of the statusbar it will return False regardless of
what is there. You can only read something programmatically added.

Application.DisplayStatusBar = True
Application.StatusBar = "Testing..."
MsgBox Application.StatusBar
Application.DisplayStatusBar = False


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Will Fleenor" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Is there a way to copy the result from the 'Status Bar' in Excel 2003
> (other than a VBA macro) to the clipboard?
>
> If not, is there a publically available, simple macro to do this. I do
> not know much VBA but can setup and run macros created by others.
>
> Thanks you for your help.
>
> Will Fleenor
>



 
Reply With Quote
 
Miyahn
Guest
Posts: n/a
 
      26th Feb 2007
"Will Fleenor" wrote in message news:(E-Mail Removed)
> Is there a way to copy the result from the 'Status Bar' in Excel 2003 (other
> than a VBA macro) to the clipboard?
>
> If not, is there a publically available, simple macro to do this. I do not
> know much VBA but can setup and run macros created by others.


If you want to copy 'AutoCalc' result(equivalent value), try this.

Option Explicit
'
Sub CopyACF()
If TypeName(Selection) <> "Range" Then Exit Sub
Dim ACF As Long, Buf As Variant
ACF = AutoCalcFunc
On Error Resume Next
With Application.WorksheetFunction
Select Case ACF
Case 2013: Buf = .Average(Selection)
Case 2014: Buf = .CountA(Selection)
Case 2015: Buf = .Count(Selection)
Case 2016: Buf = .Max(Selection)
Case 2017: Buf = .Min(Selection)
Case 2018: Buf = .Sum(Selection)
End Select
End With
If Err Then Buf = ""
On Error GoTo 0
With CreateObject("htmlfile")
.ParentWindow.ClipBoardData.SetData "Text", CStr(Buf)
End With
End Sub
'
Private Function AutoCalcFunc() As Long
Dim aBtn As CommandBarButton
With Application.CommandBars("AutoCalculate")
For Each aBtn In .Controls
If aBtn.State Then AutoCalcFunc = aBtn.ID: Exit For
Next aBtn
End With
Set aBtn = Nothing
End Function

--
Miyahn
Microsoft MVP for Microsoft Office - Excel(Jan 2004 - Dec 2007)
https://mvp.support.microsoft.com/pr...4-83d372c269b4
 
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
2007 Status Bar in Excel 2003 Brennan Microsoft Excel Programming 7 5th Feb 2008 12:46 AM
Copy from Excel 2003 status bar Will Fleenor Microsoft Excel Discussion 2 26th Feb 2007 08:33 PM
Excel 2003 Status Bar Calculations =?Utf-8?B?V2V5YnVybldhdGVyT3BlcmF0b3Jz?= Microsoft Excel Misc 3 19th Aug 2006 12:04 AM
Copy Excel 2003 "status bar" sum to cell? Dennis Shannon Microsoft Excel Programming 2 17th Jun 2006 07:54 PM
Excel 2003 Performance/Status Bar Quest Grumpy Aero Guy Microsoft Excel Programming 1 7th Jun 2006 02:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:20 AM.