scotthannaford1973
Board Regular
- Joined
- Sep 27, 2017
- Messages
- 115
- Office Version
- 2010
- Platform
- Windows
Hi
I'm using the following code to create a basic log of when a workbook is saved - and by who. Works fine, does what I want... but the format of the DocumentProperties is coming as surname, first name, organisation - as per our AD set up; am I able to easily change this so it shows as surname and first name only? TIA!
I'm using the following code to create a basic log of when a workbook is saved - and by who. Works fine, does what I want... but the format of the DocumentProperties is coming as surname, first name, organisation - as per our AD set up; am I able to easily change this so it shows as surname and first name only? TIA!
Sub LastSaveAudit() Sheets("Closed Folder Audit").Select Range("AN4:AO870").Select Selection.Cut ActiveWindow.LargeScroll Down:=0 Range("AN5").Select ActiveSheet.Paste Sheets("Closed Folder Audit").Range("AN4").Value = Format(Now, "dd-mmm-yy h-mm-ss") Sheets("Closed Folder Audit").Range("AO4").Value = ActiveWorkbook.BuiltinDocumentProperties("Last Author") End Sub |