#1
|
|||
|
|||
Inserting date and time with shortcut
Hello. I am attempting to insert the time into a document with alt + T, but every time I do, it gives me a drop down that asks what format I want. This defeats my purpose, as I need to insert these in real time.
Please help. |
#2
|
|||
|
|||
For the time, try Alt + Shift + T, then Alt + Shift + D for the date.
|
#3
|
|||
|
|||
Right. I do that and it gives me a window to select what format I want the time in. I am attempting to make it as easy as what you have posted. I am inserting inside a table that I created, if hay make a difference.
|
#4
|
|||
|
|||
Are you really running Office 2019 on Windows XP?
You can use a Date or CreateDate field and save it as an AutoText entry. You can create a keyboard shortcut to that entry.
The CreateDate field gives you the date a document is created, which may not be your current date. i have a macro that I use for a Date and Time stamp. I have it linked to keyboard shortcuts and to a QAT icon. I have three alternative ones as well. Here is the one in my QAT that includes the time. Code:
Sub DateTimeStamp() ' Inserts basic date and time stamp as text ' HansV ' Inserts date and time in format: dddd, d MMMM yyyyy - h:mm AM/PM Saturday, 6 April 2019 - 11:42 PM ' Keyboard shortcut Alt+Shift+D,D ' Selection.TypeText Format(Now, "dddd, d MMMM yyyy - h:mm AM/PM") End Sub Code:
Sub InsertDate1() ' ' Inserts current date as text European format d MMMM yyyy - 6 April 2019 ' Keyboard shortcut = Alt+Shift+D, E ' ' Hansv ' Selection.TypeText Format(Now, "d MMMM yyyy") End Sub Sub InsertDate2() ' ' Inserts date, long form, American format dddd, MMMM d, yyyy Saturday, April 6, 2019 ' Keyboard shortcut = Alt+Shift+D, D ' Hansv ' Selection.TypeText Format(Now, "dddd, MMMM d, yyyy") End Sub Sub InsertDate3() ' ' Inserts date, long form, European format dddd, d MMMM yyyy Saturday, 6 April 2019 ' Keyboard Shortcut, Alt+Shift+D, L ' HansV ' Selection.TypeText Format(Now, "dddd, d MMMM yyyy") End Sub Alt+Shift+D,L means press Alt, Shift & D together, followed by L after the others are released. Last edited by Charles Kenyon; 04-06-2019 at 09:44 PM. |
#5
|
|||
|
|||
I’m afraid I don’t know why the ‘dropdown format’ box is appearing when you press the appropriate keys, but try pressing the Alt key, then the N key, then the D key to reveal the Date and Time available formats box.
Select your preferred format for the date and time and then set as default. Now try the appropriate keys to show the date and time. At my end, working within a table makes no difference using Word 2016 or 2019. |
#6
|
|||
|
|||
Thanks. Charles, I am actually running Office on Windows 10
I think your suggestion of creating a field is going to be the way to go, though I have no experience doing that. I think I can figure it out. After speaking with MS customer support, they gave up on the idea that it was possible to insert a current time using a shortcut which would not bring up the format window, at least on Windows. I will work with your suggestions, Charles, and hopefully I can find the solution to this seemingly simple problem. Thanks, guys! |
#7
|
|||
|
|||
Quote:
Actually, they do work, as shown by Moonshine's video. On my system, I had to reassign the keyboard shortcuts to InsertDateField and InsertTimeField. Those commands, though, insert fields, not text, and they will change whenever the document is opened. Take a look at my Date Loader Add-In. It has no macros and may do what you want if all you want is the CreateDate field. Here is a template with the macros. |
#8
|
|||
|
|||
The problem I continue to have is not in entering the time of day. That works. But, when I save the file, and reopen it, those times ALL revert to time of day. I wish to keep the time of day, as I am entering time code for video so that it can be referenced late. Note that the "Update Automatically" button is NOT checked. Any ideas?
|
#9
|
|||
|
|||
The macros that I gave insert text, not fields. That will not automatically update. If you want, download the template with the macros, open it and assign keyboard shortcuts or QAT icons to them (saving those macro triggers in the template, not in the normal template). Then store the template in your Word Startup Folder. From then on the keyboard shortcuts / QAT modifications and macros will be available in all of your documents. Modifying the Quick Access Toolbar (QAT) in Microsoft Word |
#10
|
||||
|
||||
If you want the date and time to be static, use the macros that Charles provided in a previous reply.
__________________
Stefan Blom Microsoft Word MVP Microsoft 365 apps for business Windows 11 Professional |
Tags |
drop down, insert, time |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OneNote on Android phone View Tags? Enter Date, Time, Date & Time | DrTwinkyEsq | OneNote | 0 | 03-27-2017 07:54 PM |
Inserting “date & time” for the year (YYYY) only, | Jamal NUMAN | Word | 5 | 07-19-2014 06:42 PM |
Date--Time shortcut problem | markg2 | Excel | 3 | 10-27-2012 03:49 AM |
Shortcut for date/time insert | normle | Outlook | 1 | 03-25-2012 09:30 PM |
Shortcut for date/time insert | normle | Office | 4 | 03-23-2012 05:15 AM |