HotXLS Docs

LastSavedBy property

Retrieves or sets the saved-by user name stored in the classic XLS WRITEACCESS record. Read/write WideString

Syntax

property LastSavedBy: WideString;

Overview

The property covers classic XLS output and maps onto the BIFF WRITEACCESS record. Fresh workbooks return HotXLS until a caller assigns one; workbooks opened from an existing XLS file keep the original WRITEACCESS bytes until the property is assigned
Assigned values are held as UTF-16 and cut to 54 characters, which keeps the fixed-width record body valid UserName is an alias for the same stored value

Example

This example stores an explicit audit user name before saving the workbook

Workbook.LastSavedBy := 'Alice';
Workbook.SaveAs('C:\audit.xls');

See also