Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / September 2007

Tip: Looking for answers? Try searching our database.

Time

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jacksonsgurl - 11 Sep 2007 17:28 GMT
How do you get a cell ixed to where you can click on it and the current time
automatically comes up and does not continue to follow the time clock after
you have selected the cell and clicked off of it? I am trying to make a
dispatch sheet for when my rescue squad has a call at a fair that we provide
support for. Any help anyone can give me would be great.
Pete_UK - 11 Sep 2007 17:38 GMT
Not sure about clicking, but if you select a cell then do CTRL-SHIFT-
colon this will fix the time in that cell.

CTRL-semicolon will fix the date.

Hope this helps.

Pete

On Sep 11, 5:28 pm, jacksonsgurl
<jacksonsg...@discussions.microsoft.com> wrote:
> How do you get a cell ixed to where you can click on it and the current time
> automatically comes up and does not continue to follow the time clock after
> you have selected the cell and clicked off of it? I am trying to make a
> dispatch sheet for when my rescue squad has a call at a fair that we provide
> support for. Any help anyone can give me would be great.
Gord Dibben - 11 Sep 2007 18:07 GMT
CTRL + SHIFT + semi-colon will enter a staic time in a cell.

Another method would require event code to enter the static time when an event
takes place like a double-click on any cell.

Private Sub Worksheet_BeforeDoubleClick(ByVal Target _
As Range, Cancel As Boolean)
    With Target
       .Value = Format(Now, "hh:mm:ss")
   End With
Cancel = True
End Sub

This is sheet event code.  Right-click on the sheet tab and "View Code".

Copy/paste into the module that opens.

If you prefer this to operate on just one column use the code below which will
enter the time into column A cells only...........

Private Sub Worksheet_BeforeDoubleClick(ByVal Target _
As Range, Cancel As Boolean)
If Target.Cells.Column = 1 Then
    With Target
       .Value = Format(Now, "hh:mm:ss")
    End With
    End If
Cancel = True
End Sub

Gord Dibben  MS Excel MVP

>How do you get a cell ixed to where you can click on it and the current time
>automatically comes up and does not continue to follow the time clock after
>you have selected the cell and clicked off of it? I am trying to make a
>dispatch sheet for when my rescue squad has a call at a fair that we provide
>support for. Any help anyone can give me would be great.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.