Word for mac - insert last revision date

broken image
broken image

VBA code: Insert last modified date in header or footer Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)Ī = 'Last saved: ' & Format(Date, 'mm-dd-yy') & ' ' & TimeĤ. In the left VBAProject pane, double click ThisWorkbook to open the Module, then copy and paste the following code. Then hold down the ALT + F11 keys to open the Microsoft Visual Basic for Applications window.ģ.

broken image

Activate your worksheet that you want to insert the last modified date into the header or footer.Ģ. The following simple VBA code can help you to insert last saved date and time of the worksheet in to the header or footer, please do as this:ġ.

broken image

Insert last modified date/created date/userto header/footer with Kutools for Excel Insert last modified date in Excel header or footer with VBA code But have you ever tried to insert last modified date and time of the worksheet into them? Excel doesn’t provide this feature for us to insert the last modified date in header or footer, and here, I will introduce you a handy way to solve it. In Excel, we can quickly and easily insert the workbook information, such as file name, file full path, current date and so on into the header or footer. How to insert last modified date in Excel header or footer?