![]() |
|
#1
|
||||
|
||||
![]()
You can certainly insert the username, time and date into a document using VBA, though it would have no security value.
Code:
Sub InsertNameAndDate() Selection.TypeText Environ("UserName") & Chr(32) & Chr(150) & Chr(32) & _ Format(Date, "Long Date") & Chr(32) & Chr(150) & Chr(32) & _ Format(Time, "HH:MM") lbl_Exit: Exit Sub End Sub This is not a substitute for digitally signing a document.
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
![]() |
Tags |
macro, signature, word 2007 |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Aden | Word | 19 | 07-10-2023 09:02 PM |
![]() |
ashmo0024 | Word | 1 | 09-05-2014 01:46 PM |
Outlook 2003-formatting vba Date stamp | Royzer | Outlook | 0 | 03-29-2012 10:39 AM |
![]() |
rob75 | Outlook | 3 | 05-18-2011 05:02 PM |
Add date and time stamp to new mail and incoming mail | cadsmarter | Outlook | 0 | 02-02-2006 08:50 AM |