Display cell value in status bar?

jeffreybrown

Well-known Member
Joined
Jul 28, 2004
Messages
5,152
Hi All,

Is there a way to have a value from a cell show up in the status bar versus using the watch window? I want to monitor a cell as I change values in the worksheet, but I want the results to be somewhat subdued compared to the watch window.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
What's triggering the change in the cell you want to monitor? Calculation?

If so you can use:

<font face=Calibri><SPAN style="color:#00007F">Private</SPAN> <SPAN style="color:#00007F">Sub</SPAN> Worksheet_Calculate()<br>    Application.StatusBar = "A1's Value is: " & Range("A1").Value<br><SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN><br></FONT>

It's up to you how you want to reset it.

HTH,
 
Upvote 0
Smitty,

Thanks that works great. Yes I am monitoring a cell which is changed through calculations throughout the sheet. How could I incorporate maybe a delay and then the value goes away?

Maybe like Application.Wait (Now() + TimeValue("0:00:10"))
 
Upvote 0
You could do that, but you'll have to wait for it to finish:

<font face=Calibri><SPAN style="color:#00007F">Private</SPAN> <SPAN style="color:#00007F">Sub</SPAN> Worksheet_Calculate()<br>    <SPAN style="color:#00007F">With</SPAN> Application<br>        .StatusBar = "A1's Value is: " & Range("A1").Value<br>        .Wait (Now() + TimeValue("0:00:05"))<br>        .StatusBar = <SPAN style="color:#00007F">False</SPAN><br>    <SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">With</SPAN><br><SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN></FONT>
 
Upvote 0
If you don't want to wait for it to finish, you can do it this way:

In the worksheet module:

Code:
Private Sub Worksheet_Calculate()
    Application.StatusBar = "A1's Value is: " & Range("A1").Value
    Application.OnTime Now + TimeValue("00:00:05"), "clearstatus"
End Sub


and in a standard module:
Code:
Private Sub clearstatus()
Application.StatusBar = False
End Sub
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top