Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Copy from Excel 2003 status bar

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


  #2   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Copy from Excel 2003 status bar

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" wrote in message
...
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



  #3   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Copy from Excel 2003 status bar

"Will Fleenor" wrote in message
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
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
Excel 2003 Status bar missing in Internet Explorer Nico Excel Discussion (Misc queries) 0 November 12th 07 12:33 PM
Excel 2003 Status Bar Calculations WeyburnWaterOperators Excel Discussion (Misc queries) 3 August 19th 06 12:04 AM
Copy Excel 2003 "status bar" sum to cell? Dennis Shannon Excel Programming 2 June 17th 06 07:54 PM
Excel 2003 Performance/Status Bar Quest Grumpy Aero Guy[_3_] Excel Programming 1 June 7th 06 02:02 PM
Excel 2003 status bar autocalculate resize the width Vasilis Glykos Excel Discussion (Misc queries) 1 June 16th 05 09:09 PM


All times are GMT +1. The time now is 07:04 AM.

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

About Us

"It's about Microsoft Excel"