ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   how do I display username, current time & date on the status bar (https://www.excelbanter.com/excel-programming/368213-how-do-i-display-username-current-time-date-status-bar.html)

Gary Tan

how do I display username, current time & date on the status bar
 
I want to show the AD username, current time and date on the status bar
instead of the cell so as not to disrupt the data.

how can that be done? Using VBA? Any idea?

Gord Dibben

how do I display username, current time & date on the status bar
 
Gary

Maybe?

Sub Staus_Bar()
Application.StatusBar = Application.UserName & " " & Now
End Sub


Gord Dibben MS Excel MVP

On Mon, 24 Jul 2006 20:01:01 -0700, Gary Tan <Gary
wrote:

I want to show the AD username, current time and date on the status bar
instead of the cell so as not to disrupt the data.

how can that be done? Using VBA? Any idea?



Gary Tan[_2_]

how do I display username, current time & date on the status b
 
Hi Gord,

Thanks for the reply. I am actually looking for the Network UserName and to
indicate the last updated date and time. Any ideas?

Thanks!

Warmest Regards,
Gary Tan




"Gord Dibben" wrote:

Gary

Maybe?

Sub Staus_Bar()
Application.StatusBar = Application.UserName & " " & Now
End Sub


Gord Dibben MS Excel MVP

On Mon, 24 Jul 2006 20:01:01 -0700, Gary Tan <Gary
wrote:

I want to show the AD username, current time and date on the status bar
instead of the cell so as not to disrupt the data.

how can that be done? Using VBA? Any idea?




Chip Pearson

how do I display username, current time & date on the status b
 
Gary,

Try code like

Sub AAA()
Application.StatusBar = "User: " & Environ("username") & " at " &
_
Format(Now, "hh:mm:ss dd-mmm-yyyy")
End Sub

The thing about this code is that it is static -- it won't update
the time. There is no way to put a ticking clock in the
statusbar. Perhaps you could use the techniques at
www.cpearson.com/excel/ontime.htm to get a ticking clock.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Gary Tan" wrote in message
...
Hi Gord,

Thanks for the reply. I am actually looking for the Network
UserName and to
indicate the last updated date and time. Any ideas?

Thanks!

Warmest Regards,
Gary Tan




"Gord Dibben" wrote:

Gary

Maybe?

Sub Staus_Bar()
Application.StatusBar = Application.UserName & " " & Now
End Sub


Gord Dibben MS Excel MVP

On Mon, 24 Jul 2006 20:01:01 -0700, Gary Tan <Gary
wrote:

I want to show the AD username, current time and date on the
status bar
instead of the cell so as not to disrupt the data.

how can that be done? Using VBA? Any idea?






NickHK

how do I display username, current time & date on the status b
 
Application.StatusBar = environ("username") & ...

NickHK

"Gary Tan" wrote in message
...
Hi Gord,

Thanks for the reply. I am actually looking for the Network UserName and

to
indicate the last updated date and time. Any ideas?

Thanks!

Warmest Regards,
Gary Tan




"Gord Dibben" wrote:

Gary

Maybe?

Sub Staus_Bar()
Application.StatusBar = Application.UserName & " " & Now
End Sub


Gord Dibben MS Excel MVP

On Mon, 24 Jul 2006 20:01:01 -0700, Gary Tan <Gary
wrote:

I want to show the AD username, current time and date on the status bar
instead of the cell so as not to disrupt the data.

how can that be done? Using VBA? Any idea?







All times are GMT +1. The time now is 10:38 PM.

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