Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 145
Default Time and Date Entry Shortcuts?

Anyone know of a way to enter times and dates without hyphens or colons?
Would like to 10-key a six-digit date and 10-key a four-digit time without
keying in the hyphens, dashes, or colons? Please advise when you can.
Thanks so much!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,344
Default Time and Date Entry Shortcuts?

Hi Tammy,

You might be able to do this with VBA if you always enter the dates and
times in a given location in the spreadsheet.

Of course if the date is the current date you can press Ctrl+; (control
semicolon)
And if the time is now you can press Ctrl+: (control colon -- control shift
semicolon)

Here is the code:

Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
Set isect = Application.Intersect(Range("DateTime"), Target)
If Not isect Is Nothing Then
If Len(Target) = 6 Then
Target = Left(Target, 2) & "/" & Mid(Target, 3, 2) & "/" &
Right(Target, 2)
ElseIf Len(Target) = 5 Then
Target = Left(Target, 1) & "/" & Mid(Target, 2, 2) & "/" &
Right(Target, 2)
ElseIf Len(Target) = 4 Then
Target = Left(Target, 2) & ":" & Right(Target, 2)
Else
Target = Left(Target, 1) & ":" & Right(Target, 2)
End If
End If
Application.EnableEvents = True
End Sub

--
cheers,
Shane Devenshire


"Tammy" wrote:

Anyone know of a way to enter times and dates without hyphens or colons?
Would like to 10-key a six-digit date and 10-key a four-digit time without
keying in the hyphens, dashes, or colons? Please advise when you can.
Thanks so much!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Time and Date Entry Shortcuts?

I used to enter datecodes as
200801021423 (formatted as text)
This broke out to
Year= 2008
Month=01
Day = 02
Time=1423 (Military time for 2:23pm)

Vaya con Dios,
Chuck, CABGx3


"Tammy" wrote:

Anyone know of a way to enter times and dates without hyphens or colons?
Would like to 10-key a six-digit date and 10-key a four-digit time without
keying in the hyphens, dashes, or colons? Please advise when you can.
Thanks so much!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Time and Date Entry Shortcuts?

See this:

http://www.cpearson.com/Excel/DateTimeEntry.htm

--
Biff
Microsoft Excel MVP


"Tammy" wrote in message
...
Anyone know of a way to enter times and dates without hyphens or colons?
Would like to 10-key a six-digit date and 10-key a four-digit time without
keying in the hyphens, dashes, or colons? Please advise when you can.
Thanks so much!



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Time and Date Entry Shortcuts?

How do I add multple events in one Worksheet. ie..I want the date in column
A, time change in column B and H.

Thanks,


"T. Valko" wrote:

See this:

http://www.cpearson.com/Excel/DateTimeEntry.htm

--
Biff
Microsoft Excel MVP


"Tammy" wrote in message
...
Anyone know of a way to enter times and dates without hyphens or colons?
Would like to 10-key a six-digit date and 10-key a four-digit time without
keying in the hyphens, dashes, or colons? Please advise when you can.
Thanks so much!






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Time and Date Entry Shortcuts?

You'd have to combine both procedures into one. That's beyond my ability!

--
Biff
Microsoft Excel MVP


"Rachel" <Rachel @discussions.microsoft.com wrote in message
...
How do I add multple events in one Worksheet. ie..I want the date in
column
A, time change in column B and H.

Thanks,


"T. Valko" wrote:

See this:

http://www.cpearson.com/Excel/DateTimeEntry.htm

--
Biff
Microsoft Excel MVP


"Tammy" wrote in message
...
Anyone know of a way to enter times and dates without hyphens or
colons?
Would like to 10-key a six-digit date and 10-key a four-digit time
without
keying in the hyphens, dashes, or colons? Please advise when you can.
Thanks so much!






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i display the date and time of a cell entry in excel? Alex76 Excel Discussion (Misc queries) 3 January 3rd 08 03:11 PM
Freezing Date/Time after data entry. Shadyhosta New Users to Excel 2 January 31st 07 06:24 AM
Data Entry date/time? FARAZ QURESHI Excel Discussion (Misc queries) 3 January 1st 07 09:55 PM
Automatically entering time and date to an entry Ashlee Excel Discussion (Misc queries) 2 October 4th 06 12:49 AM
How do I set up Auotomatic date and time entry in an adjacent cell Geoffrey Excel Discussion (Misc queries) 2 September 1st 05 01:03 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"