View Single Post
 
Old 04-02-2017, 05:55 AM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,144
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

An autotext as suggested by Charles would do the job, or you could use a simple macro
Code:
Sub InsertDateandTime()
Dim orng As Range
    Set orng = Selection.Range
    orng.ParagraphFormat.Alignment = wdAlignParagraphLeft
    orng.Text = Format(Date, "d mmmm yyyy") & vbCr & Format(Time, "hh:mm am/pm")
    orng.Collapse 0
    orng.Select
lbl_Exit:
    Set orng = Nothing
    Exit Sub
End Sub
Change the date and time formats as required.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote