Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Old September 8th 09, 12:39 PM posted to microsoft.public.excel.misc
external usenet poster
 
First recorded activity by ExcelBanter: Aug 2006
Posts: 79
Default keyboard shortcut for dates and Time

Hi All

I know the keyboard short cut for date (Ctrl and for time (ctrl shift

Is there a short cut to enter date and time together

Equally is there a shortcut to enter the time in hh, mins and seconds
(reading from the computers clock)? when I use ctrl shift and ; it just does
hh and mm (even if set to hh mm and seconds

Any help greatly appreciated

Cheers Rexmann





  #2   Report Post  
Old September 8th 09, 12:44 PM posted to microsoft.public.excel.misc
external usenet poster
 
First recorded activity by ExcelBanter: Aug 2006
Posts: 79
Default keyboard shortcut for dates and Time

Apologies - forgot to say using Excel 2007

"rexmann" wrote:

Hi All

I know the keyboard short cut for date (Ctrl and for time (ctrl shift

Is there a short cut to enter date and time together

Equally is there a shortcut to enter the time in hh, mins and seconds
(reading from the computers clock)? when I use ctrl shift and ; it just does
hh and mm (even if set to hh mm and seconds

Any help greatly appreciated

Cheers Rexmann




  #3   Report Post  
Old September 8th 09, 01:07 PM posted to microsoft.public.excel.misc
external usenet poster
 
First recorded activity by ExcelBanter: Mar 2009
Posts: 8,521
Default keyboard shortcut for dates and Time

Hi rexmann

Dont think there are any shortcuts other than the ones you mentioned. To
enter date and time together in a cell you can (Ctrl followed by a space
followed by (ctrl shift

The other shortcuts around date and time are

CTRL+SHIFT+# which apply the date format with the day, month, and year &
[email protected] which apply the time format with the hour and minute, and AM or
PM.

If this post helps click Yes
---------------
Jacob Skaria


"rexmann" wrote:

Apologies - forgot to say using Excel 2007

"rexmann" wrote:

Hi All

I know the keyboard short cut for date (Ctrl and for time (ctrl shift

Is there a short cut to enter date and time together

Equally is there a shortcut to enter the time in hh, mins and seconds
(reading from the computers clock)? when I use ctrl shift and ; it just does
hh and mm (even if set to hh mm and seconds

Any help greatly appreciated

Cheers Rexmann




  #4   Report Post  
Old September 8th 09, 01:15 PM posted to microsoft.public.excel.misc
external usenet poster
 
First recorded activity by ExcelBanter: Jul 2006
Posts: 35,218
Default keyboard shortcut for dates and Time

You could use:
ctrl-;, spacebar, ctrl-:

You could use a macro to enter the time including seconds.

Saved from a previous post:

I've added a macro to my personal.xl* file that steals the ctrl-shift-colon
function and replaces it with what I want.

If you want to try, create a workbook that includes this code and store it in
your XLStart folder. Lots of people use a workbook named Personal.xls for this
kind of thing.

Option Explicit
Sub Auto_Open()
Application.OnKey "+^:", "'" & ThisWorkbook.Name & "'!Nowtime"
End Sub
Sub Auto_Close()
Application.OnKey "+^:"
End Sub
Sub NowTime()
On Error Resume Next
With Selection
.Value = Now
.NumberFormat = "hh:mm:ss"
End With
If Err.Number < 0 Then
Beep
Err.Clear
End If
On Error Goto 0
End Sub


If you're new to macros:

Debra Dalgleish has some notes how to implement macros he
http://www.contextures.com/xlvba01.html

David McRitchie has an intro to macros:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Ron de Bruin's intro to macros:
http://www.rondebruin.nl/code.htm

(General, Regular and Standard modules all describe the same thing.)

========
And for xl2007, you'd use an extension of .xlsm (personal.xlsm or personal.xlam
for an addin).

rexmann wrote:

Hi All

I know the keyboard short cut for date (Ctrl and for time (ctrl shift

Is there a short cut to enter date and time together

Equally is there a shortcut to enter the time in hh, mins and seconds
(reading from the computers clock)? when I use ctrl shift and ; it just does
hh and mm (even if set to hh mm and seconds

Any help greatly appreciated

Cheers Rexmann


--

Dave Peterson
  #5   Report Post  
Old September 8th 09, 02:09 PM posted to microsoft.public.excel.misc
external usenet poster
 
First recorded activity by ExcelBanter: Aug 2006
Posts: 79
Default keyboard shortcut for dates and Time

thank you all for the feedback - some good work arounds - plus I will have a
go at the macro approach when I have a bit more time

Thank you Rexmann

"Dave Peterson" wrote:

You could use:
ctrl-;, spacebar, ctrl-:

You could use a macro to enter the time including seconds.

Saved from a previous post:

I've added a macro to my personal.xl* file that steals the ctrl-shift-colon
function and replaces it with what I want.

If you want to try, create a workbook that includes this code and store it in
your XLStart folder. Lots of people use a workbook named Personal.xls for this
kind of thing.

Option Explicit
Sub Auto_Open()
Application.OnKey "+^:", "'" & ThisWorkbook.Name & "'!Nowtime"
End Sub
Sub Auto_Close()
Application.OnKey "+^:"
End Sub
Sub NowTime()
On Error Resume Next
With Selection
.Value = Now
.NumberFormat = "hh:mm:ss"
End With
If Err.Number < 0 Then
Beep
Err.Clear
End If
On Error Goto 0
End Sub


If you're new to macros:

Debra Dalgleish has some notes how to implement macros he
http://www.contextures.com/xlvba01.html

David McRitchie has an intro to macros:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Ron de Bruin's intro to macros:
http://www.rondebruin.nl/code.htm

(General, Regular and Standard modules all describe the same thing.)

========
And for xl2007, you'd use an extension of .xlsm (personal.xlsm or personal.xlam
for an addin).

rexmann wrote:

Hi All

I know the keyboard short cut for date (Ctrl and for time (ctrl shift

Is there a short cut to enter date and time together

Equally is there a shortcut to enter the time in hh, mins and seconds
(reading from the computers clock)? when I use ctrl shift and ; it just does
hh and mm (even if set to hh mm and seconds

Any help greatly appreciated

Cheers Rexmann


--

Dave Peterson



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
keyboard shortcut dicksadler Excel Discussion (Misc queries) 2 February 18th 09 11:24 PM
keyboard shortcut dicksadler Excel Discussion (Misc queries) 0 February 18th 09 11:00 PM
Keyboard shortcut GKW in GA Excel Discussion (Misc queries) 2 September 14th 08 11:35 PM
Keyboard shortcut: something new James Silverton[_2_] Excel Discussion (Misc queries) 3 September 23rd 07 01:15 PM
Keyboard Shortcut ArthurJ Excel Discussion (Misc queries) 3 January 12th 06 06:00 AM


All times are GMT +1. The time now is 11:06 PM.

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

About Us

"It's about Microsoft Excel"

 

Copyright © 2017