Re: Inserting Date into TextBox

From: Bob Phillips (bob.phillips_at_notheretiscali.co.uk)
Date: 06/12/04


Date: Sat, 12 Jun 2004 10:22:35 +0100

Depends what you mean by real time. It would be easy to have the textbox
updated upon a certain event as long as the form is still up, just a simple

    With MAINFORM
        .DateTextBox.Text = Format(Date,"dd-mm-yy hh:mm:ss")
    End With

If you want the textbox ticking over each second, then that is much more
complex. You would need a timer. You could use OnTime, but I would
personally use the Windows timer, and have a callback to manage the updates.

I could knock you up a sample workbook if you are interested, and you give
me your email address.

-- 
HTH
Bob Phillips
    ... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
"scottnshelly >" <<scottnshelly.17pv98@excelforum-nospam.com> wrote in
message news:scottnshelly.17pv98@excelforum-nospam.com...
> Can we add the time to this to update in real-time?
>
>
> ---
> Message posted from http://www.ExcelForum.com/
>


Relevant Pages

  • Re: putting the "R" in an RTS
    ... like integrated production and ships moving in real time and ... remove updates deserves a round of muffle muffle muffle on Posh ... to remove updates and smooth out mobility, production, etc but they ...
    (rec.games.empire)
  • Re: Shared sheets
    ... But lots of people don't use excel for anything that requires simultaneous ... If you really need concurrent updates, ... > us can open that sheet and modify it? ... >>> the master report sheet would update in real time. ...
    (microsoft.public.excel.misc)
  • Re: WMP11 shared folders do not auto update when files are moved/inser
    ... Speaking for myself only. ... See http://zachd.com/pss/pss.html for some helpful WMP info. ... and then updates it in the library. ... Is there any way for WM to update the library in real time without ...
    (microsoft.public.windowsmedia.player)
  • Re: Border around textbox not painted correctly
    ... use Microsoft AutoUpdate to get the latest updates. ... press the "Install" button to download and install them. ... of the textbox is not painted correctly. ...
    (microsoft.public.mac.office.powerpoint)
  • Re: Store Part of Entry
    ... It seems my network is slow on receiving the updates. ... >textbox, but a variable set to the textbox would work ... >>Jim, Rick, ...
    (microsoft.public.access.formscoding)