Microsoft Office Forums Inserting date and time with shortcut

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-06-2019, 11:42 AM
danemoreton danemoreton is offline Inserting date and time with shortcut Windows XP Inserting date and time with shortcut Office 2019
Novice
Inserting date and time with shortcut
 
Join Date: Apr 2019
Posts: 4
danemoreton is on a distinguished road
Default 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.
Reply With Quote
  #2  
Old 04-06-2019, 11:55 AM
Moonshine Moonshine is offline Inserting date and time with shortcut Windows 10 Inserting date and time with shortcut Office 2016
Not fond of tags
 
Join Date: Apr 2018
Posts: 148
Moonshine has a spectacular aura aboutMoonshine has a spectacular aura about
Default

For the time, try Alt + Shift + T, then Alt + Shift + D for the date.

Reply With Quote
  #3  
Old 04-06-2019, 12:16 PM
danemoreton danemoreton is offline Inserting date and time with shortcut Windows XP Inserting date and time with shortcut Office 2019
Novice
Inserting date and time with shortcut
 
Join Date: Apr 2019
Posts: 4
danemoreton is on a distinguished road
Default

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.
Reply With Quote
  #4  
Old 04-06-2019, 03:05 PM
Charles Kenyon Charles Kenyon is offline Inserting date and time with shortcut Windows 10 Inserting date and time with shortcut Office 2016
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 5,864
Charles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to all
Default

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.
If you use a Date field, unlink it after adding. Ctrl+6 or Ctrl+Shift+F9.
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
Alternative Formats:
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
Note that the keyboard shortcuts were added, they are not built in.

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.
Reply With Quote
  #5  
Old 04-07-2019, 01:46 AM
Moonshine Moonshine is offline Inserting date and time with shortcut Windows 10 Inserting date and time with shortcut Office 2016
Not fond of tags
 
Join Date: Apr 2018
Posts: 148
Moonshine has a spectacular aura aboutMoonshine has a spectacular aura about
Default

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.

Reply With Quote
  #6  
Old 04-07-2019, 09:33 AM
danemoreton danemoreton is offline Inserting date and time with shortcut Windows XP Inserting date and time with shortcut Office 2019
Novice
Inserting date and time with shortcut
 
Join Date: Apr 2019
Posts: 4
danemoreton is on a distinguished road
Default

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!
Reply With Quote
  #7  
Old 04-07-2019, 01:24 PM
Charles Kenyon Charles Kenyon is offline Inserting date and time with shortcut Windows 10 Inserting date and time with shortcut Office 2016
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 5,864
Charles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to all
Default

Quote:
Originally Posted by danemoreton View Post
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!

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.
Attached Files
File Type: zip DateTimeStampAddIn.zip (32.0 KB, 0 views)
Reply With Quote
  #8  
Old 04-12-2019, 02:38 PM
danemoreton danemoreton is offline Inserting date and time with shortcut Windows XP Inserting date and time with shortcut Office 2019
Novice
Inserting date and time with shortcut
 
Join Date: Apr 2019
Posts: 4
danemoreton is on a distinguished road
Default

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?
Reply With Quote
  #9  
Old 04-12-2019, 07:41 PM
Charles Kenyon Charles Kenyon is offline Inserting date and time with shortcut Windows 10 Inserting date and time with shortcut Office 2016
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 5,864
Charles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to all
Default

  • If you have a DATE or a TIME field, it automatically updates.
  • If you use CreateDate fields, it remains fixed at the date the document was created, which does not seem to be what you want
Using Date Fields in Microsoft Word
  • You can lock or unlink such a field so that it will not update.There are keyboard shortcuts available to do that.
Function Keys and Keyboard Shortcuts that Manipulate Fields

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
Reply With Quote
  #10  
Old 04-15-2019, 02:11 PM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Inserting date and time with shortcut Windows 10 Inserting date and time with shortcut Office 2019
Expert
 
Join Date: Aug 2011
Posts: 3,158
Stefan Blom is a glorious beacon of lightStefan Blom is a glorious beacon of lightStefan Blom is a glorious beacon of lightStefan Blom is a glorious beacon of lightStefan Blom is a glorious beacon of light
Default

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
Reply With Quote
Reply

Tags
drop down, insert, time

Thread Tools
Display Modes


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
Inserting date and time with shortcut 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
Inserting date and time with shortcut Shortcut for date/time insert normle Office 4 03-23-2012 05:15 AM


All times are GMT -7. The time now is 02:52 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2019 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft