Hello,
I wanted to use this subroutine as a formula =TimeStamp()
The script will show the current time in hours, minutes and seconds.
Please Login or Register to view this content.
Could someone give me some help?
Thanks in advance,
grid
Hello,
I wanted to use this subroutine as a formula =TimeStamp()
The script will show the current time in hours, minutes and seconds.
Please Login or Register to view this content.
Could someone give me some help?
Thanks in advance,
grid
Last edited by grid; 12-22-2010 at 07:23 AM.
Try this
Please Login or Register to view this content.
Alan עַם יִשְׂרָאֵל חַי
Change an Ugly Report with Power Query
Database Normalization
Complete Guide to Power Query
Man's Mind Stretched to New Dimensions Never Returns to Its Original Form
Note that grid is asking for a Function. However, a function won't give you a timestamp because it will be reevaluated on recalculate. So you need a Sub.
Maybe a little more explanation of the context of how you will use this will help us get you a better answer.
And:
The result from this code is the same the result from Sub TimeStamp in the OP, but takes more steps to get there.
Hello
I found this:
Please Login or Register to view this content.
Each change will also reflect the mousepointer because it will use a timer. I think this is the only workaround with a timer.
Greets,
grid
Thanks, the goal of my question is to get a automatically updated clock in Excel. Could this be done so I won't see the timer is running?
Greets,
grid
Aha. You want...a "clock". Yes, this code is one way of getting that, it will update the time once per second.
Here is the code enhanced to include the ability to cancel the timer, if you need to.
Please Login or Register to view this content.
Thank you 6StringJazzer! I also found some information on this website about timers: http://www.cpearson.com/excel/OnTime.aspx
Greets,
grid
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks