Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,560
Default HOW DO YOU SET THE DEFAULT TIME FOR DATE IN EXCEL TO 8:00 AM?

I would prefer to have the default time be 8:00 am rather than 12:00 AM when
I use the ctrl : shortcut.
Anyone know how to do this?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default HOW DO YOU SET THE DEFAULT TIME FOR DATE IN EXCEL TO 8:00 AM?

Ctrl-: puts the current time in the cell--there is no default.

David wrote:

I would prefer to have the default time be 8:00 am rather than 12:00 AM when
I use the ctrl : shortcut.
Anyone know how to do this?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,560
Default HOW DO YOU SET THE DEFAULT TIME FOR DATE IN EXCEL TO 8:00 AM?

I have changed the format for my column to show date with time.
the default time is always 12:00 AM.

Is there any way to change this default time to 8:00 AM?

"Dave Peterson" wrote:

Ctrl-: puts the current time in the cell--there is no default.

David wrote:

I would prefer to have the default time be 8:00 am rather than 12:00 AM when
I use the ctrl : shortcut.
Anyone know how to do this?


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default HOW DO YOU SET THE DEFAULT TIME FOR DATE IN EXCEL TO 8:00 AM?

And that means that you're using ctrl-; (semi-colon--not colon, right???)

I don't think you can change that behavior, but you can avoid it!

You could use a macro and assign it to a shortcut key so that the macro runs.

I couldn't use ctrl-; in the tools|macro|options dialog, but I could assign it
via code.

I'd add something like this to my Personal.xls workbook.

Option Explicit
Sub Auto_open()
Application.OnKey "^;", ThisWorkbook.Name & "!CtrlSemiColon"
End Sub
Sub Auto_Close()
Application.OnKey "^;"
End Sub
Sub CtrlSemiColon()
On Error Resume Next
With Selection
.NumberFormat = "mm/dd/yyyy hh:mm:ss"
.Value = Date + TimeSerial(8, 0, 0)
End With
If Err.Number < 0 Then
MsgBox "Date/Time not inserted"
Err.Clear
End If
On Error GoTo 0
End Sub

Change the date/time format to what you want.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm




David wrote:

I have changed the format for my column to show date with time.
the default time is always 12:00 AM.

Is there any way to change this default time to 8:00 AM?

"Dave Peterson" wrote:

Ctrl-: puts the current time in the cell--there is no default.

David wrote:

I would prefer to have the default time be 8:00 am rather than 12:00 AM when
I use the ctrl : shortcut.
Anyone know how to do this?


--

Dave Peterson


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,560
Default HOW DO YOU SET THE DEFAULT TIME FOR DATE IN EXCEL TO 8:00 AM?

I'll try it.
Thanks

"Dave Peterson" wrote:

And that means that you're using ctrl-; (semi-colon--not colon, right???)

I don't think you can change that behavior, but you can avoid it!

You could use a macro and assign it to a shortcut key so that the macro runs.

I couldn't use ctrl-; in the tools|macro|options dialog, but I could assign it
via code.

I'd add something like this to my Personal.xls workbook.

Option Explicit
Sub Auto_open()
Application.OnKey "^;", ThisWorkbook.Name & "!CtrlSemiColon"
End Sub
Sub Auto_Close()
Application.OnKey "^;"
End Sub
Sub CtrlSemiColon()
On Error Resume Next
With Selection
.NumberFormat = "mm/dd/yyyy hh:mm:ss"
.Value = Date + TimeSerial(8, 0, 0)
End With
If Err.Number < 0 Then
MsgBox "Date/Time not inserted"
Err.Clear
End If
On Error GoTo 0
End Sub

Change the date/time format to what you want.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm




David wrote:

I have changed the format for my column to show date with time.
the default time is always 12:00 AM.

Is there any way to change this default time to 8:00 AM?

"Dave Peterson" wrote:

Ctrl-: puts the current time in the cell--there is no default.

David wrote:

I would prefer to have the default time be 8:00 am rather than 12:00 AM when
I use the ctrl : shortcut.
Anyone know how to do this?

--

Dave Peterson


--

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
Help with Default Excel file and template Mark McDonough Excel Discussion (Misc queries) 2 May 26th 06 03:50 AM
TRYING TO SET UP EXCEL SPREADSHEET ON MY COMPUTER MEGTOM New Users to Excel 5 October 27th 05 04:06 AM
Excel formula for a time sheet HRMSN Excel Worksheet Functions 1 August 10th 05 04:07 PM
How to Join/concatenate a date field with a time field in Excel? Alan Excel Discussion (Misc queries) 4 August 9th 05 11:07 PM
Unix Time in Excel Craig Walker Excel Worksheet Functions 2 March 21st 05 07:29 PM


All times are GMT +1. The time now is 08:34 AM.

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"