在工作表上显示上次保存日期 [英] Display Last Saved Date on worksheet

查看:335
本文介绍了在工作表上显示上次保存日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何在其中一个工作表上显示Excel电子表格的最后保存日期吗?

Does anyone know how to display the Last Saved Date of an Excel Spreadsheet on one of the worksheets?

我已经找到了使用宏的方法,但是电子表格是由一个名为Jet Essentials的加载项填充的,这不喜欢宏,因此此处的解决方案一定不能使用宏.

I have found ways to do it using macros, but the spreadsheet is populated by an add-in called Jet Essentials, and this does not like macros so a solution here must not use one.

推荐答案

我会对此进行更新.

发现在电子表格后面的VB模块中添加实际上并没有注册为宏.

Found out that adding to the VB Module behind the spreadsheet does not actually register as a Macro.

这是解决方案:

  1. 按ALT + F11
  2. 单击插入">模块"
  3. 将以下内容粘贴到窗口中:

代码

Function LastSavedTimeStamp() As Date
  LastSavedTimeStamp = ActiveWorkbook.BuiltinDocumentProperties("Last Save Time")
End Function

  1. 保存模块,关闭编辑器并返回工作表.
  2. 在要显示日期的单元格中单击,然后输入以下公式:

代码

=LastSavedTimeStamp()

这篇关于在工作表上显示上次保存日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆