ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Display COUNT result in Titlebar (https://www.excelbanter.com/excel-programming/359475-display-count-result-titlebar.html)

davidemile

Display COUNT result in Titlebar
 
Hello All:

I have a COUNT function on one column.
The result appears in one cell of the worksheet
I'd like to display the numeric content of that cell in the Titlebar.
How can I use VBA to modify the Titlebar?

Thanks!!


K Dales[_2_]

Display COUNT result in Titlebar
 
The following code gives an example (must be in the worksheet's code module):
Private Sub Worksheet_Calculate()

ThisWorkbook.Windows(1).Caption = "COUNT=" & Range("A1").Value

End Sub

--
- K Dales


"davidemile" wrote:

Hello All:

I have a COUNT function on one column.
The result appears in one cell of the worksheet
I'd like to display the numeric content of that cell in the Titlebar.
How can I use VBA to modify the Titlebar?

Thanks!!


JE McGimpsey

Display COUNT result in Titlebar
 
One way:

With ActiveSheet
.Parent.Windows(1).Caption = .Range("A1").Value
End With


In article ,
davidemile wrote:

Hello All:

I have a COUNT function on one column.
The result appears in one cell of the worksheet
I'd like to display the numeric content of that cell in the Titlebar.
How can I use VBA to modify the Titlebar?

Thanks!!


Bob Phillips[_6_]

Display COUNT result in Titlebar
 
Why not just use the built-in functionality. Right-click on the bottom-right
of the status bar, and you can pick the COUNT function which shows the count
for any selected range.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"davidemile" wrote in message
...
Hello All:

I have a COUNT function on one column.
The result appears in one cell of the worksheet
I'd like to display the numeric content of that cell in the Titlebar.
How can I use VBA to modify the Titlebar?

Thanks!!




davidemile

Display COUNT result in Titlebar
 

Hey, thanks for the creative and fast answers!


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com